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))
def test_for_all_teens(self): self.assertTrue(quiz.has_teen(19, 13, 14))
def test_for_no_teens(self): self.assertFalse(quiz.has_teen(11, 20, 12))
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))