Esempio n. 1
0
File: tests.py Progetto: jMyles/WHAT
 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())
Esempio n. 2
0
 def setUp(self):
     do_set_up()
     self.users = test_user_factory(1)
Esempio n. 3
0
 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())
Esempio n. 4
0
File: tests.py Progetto: jMyles/WHAT
 def setUp(self):
     do_set_up()
     self.users = test_user_factory(1)