Skip to content

Commit 5c84a7c

Browse files
committed
Add test that formats all metadata
1 parent ebfa84d commit 5c84a7c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

python/tests/examplenumberstest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,11 @@ def testBlankMetadata(self):
224224
number = phonenumberutil.parse("+6927654321", "US")
225225
self.assertEqual("Country Code: 692 National Number: 7654321 Leading Zero: False", str(number))
226226

227+
def testMetadataPrint(self):
228+
for callingCode in PhoneMetadata._region_available.keys():
229+
metadata = PhoneMetadata.metadata_for_region("GB")
230+
str(metadata)
231+
227232
def testWhitespaceInNationalPrefixForParsing(self):
228233
# Python version extra test
229234
# AR metadata has whitespace in the RE for nationalPrefixForParsing

0 commit comments

Comments
 (0)