Did I find the right examples for you? yes no

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

src/c/a/candideitorg-django-0.0.1/candideitorg/tests.py   candideitorg-django(Download)
    def test_upgrade_data(self):
        Election.fetch_all_from_api()
        Election.fetch_all_from_api()
        self.assertEquals(Election.objects.count(), 1)
        self.assertEquals(Category.objects.count(), 2)
    def test_fetch_all_categories(self):
        Election.fetch_all_from_api()
        election = Election.objects.all()[0]
 
        self.assertEquals(Category.objects.count(), 2)