From 46a5b17340258aa1b11d50460bebc7d8da4c2416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Freitag?= Date: Thu, 16 Nov 2023 20:12:08 +0100 Subject: [PATCH] Add national to the list of extension-compatible formats Thanks to @jessebrennan for reporting the additional format. --- tests/test_phonenumber.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_phonenumber.py b/tests/test_phonenumber.py index 06e438f2..05cc9c2e 100644 --- a/tests/test_phonenumber.py +++ b/tests/test_phonenumber.py @@ -28,6 +28,7 @@ def test_phonenumber_extensions(self): phone = PhoneNumber.from_string(data) self.assertEqual(phone.as_international, "+33 6 12 34 56 78 ext. 456") self.assertEqual(phone.as_rfc3966, "tel:+33-6-12-34-56-78;ext=456") + self.assertEqual(phone.as_national, "06 12 34 56 78 ext. 456") def test_phonenumber_formatting_properties(self): phone = PhoneNumber.from_string("+33612345678")