Did I find the right examples for you? yes no

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

src/c/a/candideitorg-django-0.0.1/candideitorg/tests.py   candideitorg-django(Download)
 
        self.assertEquals(Background.objects.count(),4)
        background = Background.objects.get(remote_id=1)
        self.assertEquals(background.name,'Partido politico actual')
        self.assertEquals(background.resource_uri,'/api/v2/background/1/')
    def test_create_background_candidate(self):
        background = Background.objects.get(id=1)
        candidate = Candidate.objects.get(id= 1)
        background_candidate = BackgroundCandidate.objects.create(
            value = 'CCC',
    def test_get_all_background_candidates_from_api(self):
        candidate = Candidate.objects.get(resource_uri="/api/v2/candidate/1/")
        background = Background.objects.get(resource_uri="/api/v2/background/1/")
 
        backgrounds_candidates = BackgroundCandidate.objects.filter(