def test_remove_email_empty_input(self): # Setup input_text = '' expected_output = '' # Actual call output_text = remove_email(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_remove_email_no_email(self): # Setup input_text = "Please call me (425) 425-1234." expected_output = "Please call me (425) 425-1234." # Actual call output_text = remove_email(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_remove_email_all_emails(self): # Setup input_text = '[email protected], [email protected], [email protected]' expected_output = ', , ' # Actual call output_text = remove_email(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_remove_email(self): # Setup input_text = "Please email me at [email protected]." expected_output = "Please email me at ." # Actual call output_text = remove_email(input_text) # Asserts self.assertEqual(output_text, expected_output)