def test_boolean_answer(self): user = test_user_factory(1)[0] q_and_a, question = self.test_that_q_and_a_can_contain_boolean_question( ) #Grab a q_and_a and a question from the test above. answer = BooleanAnswer.objects.create(creator=user, question=question, application=q_and_a, answer=False) self.assertFalse(q_and_a.answers.all()[0].answer())
def setUp(self): do_set_up() self.users = test_user_factory(1)
def test_boolean_answer(self): user = test_user_factory(1)[0] q_and_a, question = self.test_that_q_and_a_can_contain_boolean_question() #Grab a q_and_a and a question from the test above. answer = BooleanAnswer.objects.create(creator=user, question=question, application=q_and_a, answer=False) self.assertFalse(q_and_a.answers.all()[0].answer())