Exemple #1
0
 def test_shouting(self):
     self.assertEqual(response("WATCH OUT!"), "Whoa, chill out!")
Exemple #2
0
 def test_other_whitespace(self):
     self.assertEqual(response("\n\r \t"), "Fine. Be that way!")
Exemple #3
0
 def test_talking_forcefully(self):
     self.assertEqual(response("Hi there!"), "Whatever.")
Exemple #4
0
 def test_non_letters_with_question(self):
     self.assertEqual(response(":) ?"), "Sure.")
Exemple #5
0
 def test_stating_something(self):
     self.assertEqual(response("Tom-ay-to, tom-aaaah-to."), "Whatever.")
Exemple #6
0
 def test_using_acronyms_in_regular_speech(self):
     self.assertEqual(
         response("It's OK if you don't want to go to the DMV."),
         "Whatever.")
Exemple #7
0
 def test_question_with_no_letters(self):
     self.assertEqual(response("4?"), "Sure.")
Exemple #8
0
 def test_forceful_question(self):
     self.assertEqual(
         response("WHAT THE HELL WERE YOU THINKING?"),
         "Calm down, I know what I'm doing!"
     )
Exemple #9
0
 def test_shouting_numbers(self):
     self.assertEqual(response("1, 2, 3 GO!"), "Whoa, chill out!")
Exemple #10
0
 def test_talking_forcefully(self):
     self.assertEqual(
         response("Let's go make out behind the gym!"), "Whatever.")
Exemple #11
0
 def test_using_acronyms_in_regular_speech(self):
     self.assertEqual(
         response("It's OK if you don't want to go to the DMV."),
         "Whatever.")
Exemple #12
0
 def test_asking_gibberish(self):
     self.assertEqual(response("fffbbcbeab?"), "Sure.")
Exemple #13
0
 def test_asking_a_numeric_question(self):
     self.assertEqual(response("You are, what, like 15?"), "Sure.")
Exemple #14
0
 def test_asking_a_question(self):
     self.assertEqual(
         response("Does this cryogenic chamber make me look fat?"), "Sure.")
Exemple #15
0
 def test_asking_a_question(self):
     self.assertEqual(
         response("Does this cryogenic chamber make me look fat?"), "Sure.")
Exemple #16
0
 def test_no_letters(self):
     self.assertEqual(response("1, 2, 3"), "Whatever.")
Exemple #17
0
 def test_asking_gibberish(self):
     self.assertEqual(response("fffbbcbeab?"), "Sure.")
Exemple #18
0
 def test_question_with_no_letters(self):
     self.assertEqual(response("4?"), "Sure.")
Exemple #19
0
 def test_shouting_numbers(self):
     self.assertEqual(response("1, 2, 3 GO!"), "Whoa, chill out!")
Exemple #20
0
 def test_shouting_with_special_characters(self):
     self.assertEqual(
         response("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!"),
         "Whoa, chill out!")
Exemple #21
0
 def test_shouting_with_no_exclamation_mark(self):
     self.assertEqual(response("I HATE THE DMV"), "Whoa, chill out!")
Exemple #22
0
 def test_shouting_with_no_exclamation_mark(self):
     self.assertEqual(response("I HATE THE DMV"), "Whoa, chill out!")
Exemple #23
0
 def test_prolonged_silence(self):
     self.assertEqual(response("          "), "Fine. Be that way!")
Exemple #24
0
 def test_statement_containing_question_mark(self):
     self.assertEqual(
         response("Ending with ? means a question."), "Whatever.")
Exemple #25
0
 def test_starting_with_whitespace(self):
     self.assertEqual(response("         hmmmmmmm..."), "Whatever.")
Exemple #26
0
 def test_non_letters_with_question(self):
     self.assertEqual(response(":) ?"), "Sure.")
Exemple #27
0
 def test_shouting_gibberish(self):
     self.assertEqual(response("FCECDFCAAB"), "Whoa, chill out!")
Exemple #28
0
 def test_prattling_on(self):
     self.assertEqual(
         response("Wait! Hang on. Are you going to be OK?"), "Sure.")
Exemple #29
0
 def test_forceful_question(self):
     self.assertEqual(response("WHAT'S GOING ON?"),
                      "Calm down, I know what I'm doing!")
Exemple #30
0
 def test_prolonged_silence(self):
     self.assertEqual(response("          "), "Fine. Be that way!")
Exemple #31
0
 def test_shouting_gibberish(self):
     self.assertEqual(response("FCECDFCAAB"), "Whoa, chill out!")
Exemple #32
0
 def test_alternate_silence(self):
     self.assertEqual(response("\t\t\t\t\t\t\t\t\t\t"),
                      "Fine. Be that way!")
Exemple #33
0
 def test_asking_a_numeric_question(self):
     self.assertEqual(response("You are, what, like 15?"), "Sure.")
Exemple #34
0
 def test_stating_something(self):
     self.assertEqual(response("Tom-ay-to, tom-aaaah-to."), "Whatever.")
Exemple #35
0
 def test_talking_forcefully(self):
     self.assertEqual(response("Let's go make out behind the gym!"),
                      "Whatever.")
Exemple #36
0
 def test_multiple_line_question(self):
     self.assertEqual(
         response("\nDoes this cryogenic chamber make me look fat?\n"
                  "No."), "Whatever.")
Exemple #37
0
 def test_forceful_question(self):
     self.assertEqual(
         response("WHAT THE HELL WERE YOU THINKING?"),
         "Calm down, I know what I'm doing!",
     )
Exemple #38
0
 def test_starting_with_whitespace(self):
     self.assertEqual(response("         hmmmmmmm..."), "Whatever.")
Exemple #39
0
 def test_no_letters(self):
     self.assertEqual(response("1, 2, 3"), "Whatever.")
Exemple #40
0
 def test_ending_with_whitespace(self):
     self.assertEqual(
         response("Okay if like my  spacebar  quite a bit?   "), "Sure.")
Exemple #41
0
 def test_shouting_with_special_characters(self):
     self.assertEqual(
         response("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!"),
         "Whoa, chill out!",
     )
Exemple #42
0
 def test_other_whitespace(self):
     self.assertEqual(response("\n\r \t"), "Fine. Be that way!")
Exemple #43
0
 def test_statement_containing_question_mark(self):
     self.assertEqual(response("Ending with ? means a question."),
                      "Whatever.")
Exemple #44
0
 def test_non_question_ending_with_whitespace(self):
     self.assertEqual(
         response("This is a statement ending with whitespace      "),
         "Whatever.")
Exemple #45
0
 def test_prattling_on(self):
     self.assertEqual(response("Wait! Hang on. Are you going to be OK?"),
                      "Sure.")
Exemple #46
0
 def test_starting_with_whitespace(self):
     assert response("         hmmmmmmm...") == "Whatever."
Exemple #47
0
 def test_alternate_silence(self):
     self.assertEqual(response("\t\t\t\t\t\t\t\t\t\t"),
                      "Fine. Be that way!")
Exemple #48
0
 def test_ending_with_whitespace(self):
     assert response(
         "Okay if like my  spacebar  quite a bit?   ") == "Sure."
Exemple #49
0
 def test_multiple_line_question(self):
     self.assertEqual(
         response("\nDoes this cryogenic chamber make me look fat?\nNo."),
         "Whatever.",
     )
Exemple #50
0
 def test_other_whitespace(self):
     assert response("\n\r \t") == "Fine. Be that way!"
Exemple #51
0
 def test_ending_with_whitespace(self):
     self.assertEqual(
         response("Okay if like my  spacebar  quite a bit?   "), "Sure.")
Exemple #52
0
 def test_non_question_ending_with_whitespace(self):
     assert (response("This is a statement ending with whitespace      ") ==
             "Whatever.")
Exemple #53
0
 def test_non_question_ending_with_whitespace(self):
     self.assertEqual(
         response("This is a statement ending with whitespace      "),
         "Whatever.")
Exemple #54
0
 def test_shouting(self):
     self.assertEqual(response("WATCH OUT!"), "Whoa, chill out!")