示例#1
0
文件: tests.py 项目: 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())
示例#2
0
文件: tests.py 项目: SlashRoot/WHAT
 def setUp(self):
     do_set_up()
     self.users = test_user_factory(1)
示例#3
0
文件: tests.py 项目: SlashRoot/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())
示例#4
0
文件: tests.py 项目: jMyles/WHAT
 def setUp(self):
     do_set_up()
     self.users = test_user_factory(1)