def test_is_funny_tim(self): self.assertEqual(is_funny("tim"), False)
def test_is_funny_anyone_else(self): """anyone else but tim should be funny""" self.assertTrue(is_funny("blue"), "blue should be funny") self.assertTrue(is_funny("tammy"), "tammy should be funny") self.assertTrue(is_funny("sven"), "sven should be funny")
def test_is_funny_anyone_else(self): """ Anyone but Tim should be funny """ self.assertTrue(is_funny("Blue"), "Blue should be funny") self.assertTrue(is_funny("Tammy"), "Tammy should be funny") self.assertTrue(is_funny("Sven"), "Sven should be funny")
def test_is_funny_tim(self): self.assertEqual(is_funny("Tim"), False, "Tim should not be funny")
def test_is_funny_anyone_else(self): """anyone else but time should be funny""" self.assertTrue(is_funny("blue"), "blue is funny"), self.assertTrue(is_funny("babes"), "babes is funny"), self.assertTrue(is_funny("annabelle"), "annabelle is funny")
def test_is_funny_tim(self): """tim should not be funny""" self.assertEqual(is_funny("tim"), False)