def test_invalid_case(): formatted_phone = format_phone_number('phone_number') assert formatted_phone == None
def test_all_cases_with_invalid_phone_numbers(phone_number, expected_formatted_phone_number): formatted_phone_number = format_phone_number(phone_number) assert formatted_phone_number == expected_formatted_phone_number
def test_valid_cases(phone_number, expected_formatted_phone): formatted_phone = format_phone_number(phone_number) assert formatted_phone == expected_formatted_phone
def test_format_phone_number(input, expected): assert format_phone_number(input) == expected