def test_remove_whitespace_no_whitespace(self): # Setup input_text = 'Helloworld...' expected_output = 'Helloworld...' # Actual call output_text = remove_whitespace(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_remove_whitespace_empty_input(self): # Setup input_text = '' expected_output = '' # Actual call output_text = remove_whitespace(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_remove_whitespace_strip(self): # Setup input_text = ' Hello Welcome. ' expected_output = 'Hello Welcome.' # Actual call output_text = remove_whitespace(input_text, remove_duplicate_whitespace=False) # Asserts self.assertEqual(output_text, expected_output)