Esempio n. 1
0
 def test_shouting_numbers(self):
     self.assertEqual('Whoa, chill out!', bob.hey('1, 2, 3 GO!'))
Esempio n. 2
0
 def test_asking_a_numeric_question(self):
     self.assertEqual('Sure.', bob.hey('You are, what, like 15?'))
Esempio n. 3
0
 def test_using_acronyms_in_regular_speech(self):
     self.assertEqual(
         'Whatever.',
         bob.hey("It's OK if you don't want to go to the DMV."))
Esempio n. 4
0
 def test_ends_with_whitespace(self):
     self.assertEqual('Sure.',
                      bob.hey('What if we end with whitespace?   '))
Esempio n. 5
0
 def test_shouting(self):
     self.assertEqual('Whoa, chill out!', bob.hey('WATCH OUT!'))
Esempio n. 6
0
 def test_shouting_with_no_exclamation_mark(self):
     self.assertEqual('Whoa, chill out!', bob.hey('I HATE YOU'))
Esempio n. 7
0
 def test_question_with_only_numbers(self):
     self.assertEqual(
         'Sure.', bob.hey('4?')
     )
Esempio n. 8
0
 def test_prattling_on(self):
     self.assertEqual(
         'Sure.', bob.hey("Wait! Hang on. Are you going to be OK?")
     )
Esempio n. 9
0
 def test_silence(self):
     self.assertEqual(
         'Fine. Be that way!', bob.hey('')
     )
Esempio n. 10
0
 def test_shouting_with_no_exclamation_mark(self):
     self.assertEqual(
         'Whoa, chill out!', bob.hey('I HATE YOU')
     )
Esempio n. 11
0
 def test_statement_containing_question_mark(self):
     self.assertEqual(
         'Whatever.', bob.hey('Ending with ? means a question.')
     )
Esempio n. 12
0
 def test_calmly_speaking_with_umlauts(self):
     self.assertEqual(
         'Whatever.', bob.hey('ÜMLäÜTS!')
     )
Esempio n. 13
0
 def test_shouting_with_umlauts(self):
     self.assertEqual(
         'Whoa, chill out!', bob.hey('ÜMLÄÜTS!')
     )
Esempio n. 14
0
 def test_shouting_with_special_characters(self):
     self.assertEqual(
         'Whoa, chill out!',
         bob.hey('ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!')
     )
Esempio n. 15
0
 def test_question_with_only_numbers(self):
     self.assertEqual('Sure.', bob.hey('4?'))
Esempio n. 16
0
 def test_prolonged_silence(self):
     self.assertEqual(
         'Fine. Be that way!', bob.hey('    \t')
     )
Esempio n. 17
0
 def test_shouting_with_umlauts(self):
     self.assertEqual('Whoa, chill out!', bob.hey('ÜMLÄÜTS!'))
Esempio n. 18
0
 def test_starts_with_whitespace(self):
     self.assertEqual(
         'Whatever.', bob.hey('         hmmmmmmm...')
     )
Esempio n. 19
0
 def test_prattling_on(self):
     self.assertEqual('Sure.',
                      bob.hey("Wait! Hang on. Are you going to be OK?"))
Esempio n. 20
0
 def test_ends_with_whitespace(self):
     self.assertEqual(
         'Sure.', bob.hey('What if we end with whitespace?   ')
     )
Esempio n. 21
0
 def test_starts_with_whitespace(self):
     self.assertEqual('Whatever.', bob.hey('         hmmmmmmm...'))
Esempio n. 22
0
 def test_stating_something(self):
     self.assertEqual(
         'Whatever.',
         bob.hey('Tom-ay-to, tom-aaaah-to.')
     )
Esempio n. 23
0
 def test_stating_something(self):
     self.assertEqual('Whatever.', bob.hey('Tom-ay-to, tom-aaaah-to.'))
Esempio n. 24
0
 def test_shouting(self):
     self.assertEqual(
         'Whoa, chill out!',
         bob.hey('WATCH OUT!')
     )
Esempio n. 25
0
 def test_asking_a_question(self):
     self.assertEqual(
         'Sure.', bob.hey('Does this cryogenic chamber make me look fat?'))
Esempio n. 26
0
 def test_asking_a_question(self):
     self.assertEqual(
         'Sure.',
         bob.hey('Does this cryogenic chamber make me look fat?')
     )
Esempio n. 27
0
 def test_talking_forcefully(self):
     self.assertEqual('Whatever.',
                      bob.hey("Let's go make out behind the gym!"))
Esempio n. 28
0
 def test_asking_a_numeric_question(self):
     self.assertEqual(
         'Sure.',
         bob.hey('You are, what, like 15?')
     )
Esempio n. 29
0
 def test_forceful_questions(self):
     self.assertEqual('Whoa, chill out!',
                      bob.hey('WHAT THE HELL WERE YOU THINKING?'))
Esempio n. 30
0
 def test_talking_forcefully(self):
     self.assertEqual(
         'Whatever.',
         bob.hey("Let's go make out behind the gym!")
     )
Esempio n. 31
0
 def test_only_numbers(self):
     self.assertEqual('Whatever.', bob.hey('1, 2, 3'))
Esempio n. 32
0
 def test_using_acronyms_in_regular_speech(self):
     self.assertEqual(
         'Whatever.', bob.hey("It's OK if you don't want to go to the DMV.")
     )
Esempio n. 33
0
 def test_shouting_with_special_characters(self):
     self.assertEqual(
         'Whoa, chill out!',
         bob.hey('ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!'))
Esempio n. 34
0
 def test_forceful_questions(self):
     self.assertEqual(
         'Whoa, chill out!', bob.hey('WHAT THE HELL WERE YOU THINKING?')
     )
Esempio n. 35
0
 def test_calmly_speaking_with_umlauts(self):
     self.assertEqual('Whatever.', bob.hey('ÜMLäÜTS!'))
Esempio n. 36
0
 def test_shouting_numbers(self):
     self.assertEqual(
         'Whoa, chill out!', bob.hey('1, 2, 3 GO!')
     )
Esempio n. 37
0
 def test_statement_containing_question_mark(self):
     self.assertEqual('Whatever.',
                      bob.hey('Ending with ? means a question.'))
Esempio n. 38
0
 def test_prolonged_silence(self):
     self.assertEqual('Fine. Be that way!', bob.hey('    \t'))
Esempio n. 39
0
 def test_silence(self):
     self.assertEqual('Fine. Be that way!', bob.hey(''))
Esempio n. 40
0
 def test_only_numbers(self):
     self.assertEqual(
         'Whatever.', bob.hey('1, 2, 3')
     )