Did I find the right examples for you? yes no

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

src/v/o/votainteligente-portal-electoral-HEAD/elections/tests/election_tests.py   votainteligente-portal-electoral(Download)
	def setUp(self):
		super(ElectionTestCase, self).setUp()
		self.can_election = CanElection.objects.all()[0]
		self.can_election.election.delete()
 

src/c/a/candideitorg-django-0.0.1/candideitorg/tests.py   candideitorg-django(Download)
        UpdatingDataCandidator.install_candidator_yaml(yaml_file='candidator_example_data_with_answers2')
 
        election = Election.objects.all()[0]
        election.update()
 
        UpdatingDataCandidator.install_candidator_yaml(yaml_file='candidator_example_data_with_answers2')
 
        election = Election.objects.all()[0]
 
        result = election_updater.delay(election)
        UpdatingDataCandidator.install_candidator_yaml(yaml_file='candidator_example_data_with_answers')
 
        election = Election.objects.all()[0]
 
        UpdatingDataCandidator.install_candidator_yaml(yaml_file='candidator_example_data_with_answers2')
 
        UpdatingDataCandidator.install_candidator_yaml(yaml_file='candidator_example_data_with_answers2')
        election = Election.objects.all()[0]
        election.update_answers()
 
    def test_it_does_not_create_replicate_answers(self):
        Election.fetch_all_from_api()
        UpdatingDataCandidator.install_candidator_yaml(yaml_file='candidator_example_data_updating')
        election = Election.objects.all()[0]
        election.update()