コード例 #1
0
 def test_answer_question_correct(self, random):
     computer = Computer("test", "test", "test", "test", 40)
     answer = computer.answer_question({"correct": "testCorrect"},
                                       ["testCorrect", "test", "3", "4"])
     self.assertEqual(answer, "testCorrect")
コード例 #2
0
 def test_answer_question_incorrect(self, random):
     computer = Computer("test", "test", "test", "test", 40)
     answer = computer.answer_question({"correct": "testCorrect"},
                                       ["testCorrect", "test", "3", "4"])