Пример #1
0
 def test_for_one_teen(self):
     self.assertTrue(quiz.has_teen(19, 1, 4))
     self.assertTrue(quiz.has_teen(9, 14, 4))
     self.assertTrue(quiz.has_teen(9, 1, 13))
Пример #2
0
 def test_for_all_teens(self):
     self.assertTrue(quiz.has_teen(19, 13, 14))
Пример #3
0
 def test_for_no_teens(self):
     self.assertFalse(quiz.has_teen(11, 20, 12))
Пример #4
0
 def test_for_two_teens(self):
     self.assertTrue(quiz.has_teen(19, 13, 4))
     self.assertTrue(quiz.has_teen(9, 16, 13))
     self.assertTrue(quiz.has_teen(19, 1, 18))