示例#1
0
 def test_talking_forcefully(self):
     self.assertEqual(hey("Let's go make out behind the gym!"), "Whatever.")
示例#2
0
 def test_using_acronyms_in_regular_speech(self):
     self.assertEqual(hey("It's OK if you don't want to go to the DMV."),
                      "Whatever.")
示例#3
0
 def test_asking_a_numeric_question(self):
     self.assertEqual(hey("You are, what, like 15?"), "Sure.")
示例#4
0
 def test_asking_gibberish(self):
     self.assertEqual(hey("fffbbcbeab?"), "Sure.")
示例#5
0
 def test_shouting_gibberish(self):
     self.assertEqual(hey("FCECDFCAAB"), "Whoa, chill out!")
示例#6
0
 def test_asking_a_question(self):
     self.assertEqual(hey("Does this cryogenic chamber make me look fat?"),
                      "Sure.")
示例#7
0
 def test_yelling_bobs_name_with_question(self):
     self.assertEqual(hey("BOB, WILL YOU STOP IT?"),
                      "Calm down, I know what I'm doing!")
示例#8
0
 def test_shouting(self):
     self.assertEqual(hey("WATCH OUT!"), "Whoa, chill out!")
示例#9
0
 def test_yelling_bobs_name(self):
     self.assertEqual(hey("BOB"), 'Whoa, chill out!')
示例#10
0
 def test_calling_bob_with_question(self):
     self.assertEqual(hey("hey bob, how are you?"), "that's me")
示例#11
0
 def test_calling_bob(self):
     self.assertEqual(hey("hey bob"), "that's me")