示例#1
0
 def test_is_funny_tim(self):
     self.assertEqual(is_funny("tim"), False)
示例#2
0
 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")
示例#3
0
 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")
示例#4
0
 def test_is_funny_tim(self):
     self.assertEqual(is_funny("Tim"), False, "Tim should not be funny")
示例#5
0
文件: test.py 项目: Celedence/class
 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")
示例#6
0
文件: test.py 项目: Celedence/class
 def test_is_funny_tim(self):
     """tim should not be funny"""
     self.assertEqual(is_funny("tim"), False)