Did I find the right examples for you? yes no

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

src/c/a/candideitorg-django-0.0.1/candideitorg/tests.py   candideitorg-django(Download)
    def test_load_all_elections(self):
        Election.fetch_all_from_api()
        self.assertEquals(Election.objects.count(), 21)
 
 
class UpdatingDataCandidator(CandideitorgTestCase):
 
    def test_upgrade_data(self):
        Election.fetch_all_from_api()
        Election.fetch_all_from_api()
    def test_updates_answer(self):
        UpdatingDataCandidator.install_candidator_yaml()
        Election.fetch_all_from_api()
 
        UpdatingDataCandidator.install_candidator_yaml(yaml_file='candidator_example_data_with_answers2')
        Election.fetch_all_from_api()

src/c/a/candideitorg-django-0.0.1/candideitorg/management/commands/update_from_candidator.py   candideitorg-django(Download)
    def handle(self, *args, **options):
        Election.fetch_all_from_api()