def test_remove_phone_number_empty_input(self): # Setup input_text = '' expected_output = '' # Actual call output_text = remove_phone_number(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_remove_phone_number_no_phone(self): # Setup input_text = "Please email me" expected_output = "Please email me" # Actual call output_text = remove_phone_number(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_remove_phone_number_all_phones(self): # Setup input_text = '(425) 538-1234, (425)5381234, 4255381234 425-538-1234, 425.538.1234, +1 425-538-1234' expected_output = ',,,, ' # Actual call output_text = remove_phone_number(input_text) # Asserts self.assertEqual(output_text, expected_output)
def test_remove_phone_number(self): # Setup input_text = "Please call me at (425) 538-0116." expected_output = "Please call me at." # Actual call output_text = remove_phone_number(input_text) # Asserts self.assertEqual(output_text, expected_output)