Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/d/j/django-vkontakte-places-0.3.4/vkontakte_places/tests.py   django-vkontakte-places(Download)
        country = CountryFactory.create(remote_id=1)
 
        City.remote.fetch(country=country.remote_id)
        self.assertEqual(City.objects.count(), 18)
        self.assertEqual(City.objects.all()[0].country, country)
 
        City.remote.fetch(country=country)
 
        City.objects.all().delete()
        City.remote.fetch(country=country, q=u'Москва')
        self.assertTrue(City.objects.count() > 1)
 
    def test_fetch_cities_by_id(self):
 
        self.assertEqual(City.objects.count(), 0)
        City.remote.fetch(ids=[1,2])