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