Example #1
0
 def test_talking_forcefully(self):
     self.assertEqual(hey("Let's go make out behind the gym!"), "Whatever.")
Example #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.")
Example #3
0
 def test_asking_a_numeric_question(self):
     self.assertEqual(hey("You are, what, like 15?"), "Sure.")
Example #4
0
 def test_asking_gibberish(self):
     self.assertEqual(hey("fffbbcbeab?"), "Sure.")
Example #5
0
 def test_shouting_gibberish(self):
     self.assertEqual(hey("FCECDFCAAB"), "Whoa, chill out!")
Example #6
0
 def test_asking_a_question(self):
     self.assertEqual(hey("Does this cryogenic chamber make me look fat?"),
                      "Sure.")
Example #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!")
Example #8
0
 def test_shouting(self):
     self.assertEqual(hey("WATCH OUT!"), "Whoa, chill out!")
Example #9
0
 def test_yelling_bobs_name(self):
     self.assertEqual(hey("BOB"), 'Whoa, chill out!')
Example #10
0
 def test_calling_bob_with_question(self):
     self.assertEqual(hey("hey bob, how are you?"), "that's me")
Example #11
0
 def test_calling_bob(self):
     self.assertEqual(hey("hey bob"), "that's me")