def test_remove_name_empty_input(self): # Setup input_text = '' expected_output = [] # Actual call output_text = remove_name(input_text) # Asserts self.assertListEqual(output_text, expected_output)
def test_remove_name_no_name(self): # Setup input_text = 'Hello World.' expected_output = ['Hello', 'World', '.'] # Actual call output_text = remove_name(input_text) # Asserts self.assertListEqual(output_text, expected_output)
def test_remove_name_all_names(self): # Setup input_text = 'Paul Allen John Doe Jane Doe Lebron James' expected_output = [] # Actual call output_text = remove_name(input_text) # Asserts self.assertListEqual(output_text, expected_output)
def test_remove_name(self): # Setup input_text = "My name is Lionel Messi" expected_output = ['My', 'name', 'is'] # Actual call output_text = remove_name(input_text) # Asserts self.assertListEqual(output_text, expected_output)