def test005_getUserStringIgnoresBlankLines(self):
     from main import getUserString
     expected_prompt = "HELLO"
     expected_response = "WORLD"
     self.input_response_list = ["", "\n", " \t\n" + expected_response + " \t\n"]
     actual_response = getUserString(expected_prompt)
     self.assertEqual(actual_response, expected_response)
     return
 def test003_getUserStringGetsInput(self):
     from main import getUserString
     expected_prompt = "HELLO"
     expected_response = "WORLD"
     self.input_response_list = [expected_response]
     actual_response = getUserString(expected_prompt)
     self.assertEqual(actual_response, expected_response)
     return
 def test004_getUserStringStripsWhitespace(self):
     from main import getUserString
     expected_prompt = "HELLO"
     expected_response = "WORLD"
     self.input_response_list = [" \t\n" + expected_response + " \t\n"]
     actual_response = getUserString(expected_prompt)
     self.assertEqual(actual_response, expected_response)
     return
 def test002_getUserStringSendsCorrectPrompt(self):
     from main import getUserString
     expected_prompt = "HELLO"
     expected_response = "WORLD"
     self.input_response_list = [expected_response]
     actual_response = getUserString(expected_prompt)
     self.assertEqual(self.input_given_prompt, expected_prompt)
     return