Skip to content

Commit

Permalink
Add national to the list of extension-compatible formats
Browse files Browse the repository at this point in the history
Thanks to @jessebrennan for reporting the additional format.
  • Loading branch information
francoisfreitag committed Nov 16, 2023
1 parent 79bad4c commit 46a5b17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_phonenumber.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 46a5b17

Please sign in to comment.