Fix unittest

This commit is contained in:
surister 2020-09-18 10:25:38 +02:00
parent cc848b135d
commit a64decee57

View File

@ -20,7 +20,7 @@ class QuestionCount(unittest.TestCase):
answers = get_answered_questions(question_list) answers = get_answered_questions(question_list)
self.assertEqual(len(question_list), 11) self.assertEqual(len(question_list), 11)
self.assertEqual(answers, 3) self.assertEqual(len(answers), 3)
def test_case_2(self): def test_case_2(self):
raw_list = open_test_case_file(2) raw_list = open_test_case_file(2)
@ -28,4 +28,4 @@ class QuestionCount(unittest.TestCase):
answers = get_answered_questions(question_list) answers = get_answered_questions(question_list)
self.assertEqual(len(question_list), 16) self.assertEqual(len(question_list), 16)
self.assertEqual(answers, 11) self.assertEqual(len(answers), 11)