コード例 #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")