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(Answer.objects.count(),10)
        answer = Answer.objects.get(remote_id=9)
        self.assertEquals(answer.caption,'Puro perder clases')
        self.assertEquals(answer.resource_uri,'/api/v2/answer/9/')
    def test_associate_answers(self):
        # Candidate.objects.all().delete()
        Election.fetch_all_from_api()
        candidate1 = Candidate.objects.get(resource_uri="/api/v2/candidate/1/")
        answer8 = Answer.objects.get(resource_uri="/api/v2/answer/8/")
    def test_templatetag_candidate_answer_value(self):
        question = Question.objects.get(resource_uri="/api/v2/question/2/")
        candidate = Candidate.objects.get(resource_uri="/api/v2/candidate/1/")
        answer = Answer.objects.get(resource_uri="/api/v2/answer/8/")