Skip to content

Commit 9a5caa3

Browse files
committed
Add test to restore 100% coverage
1 parent 9402df4 commit 9a5caa3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

python/tests/examplenumberstest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ def testFormatNumberForMobile(self):
183183
brNumberFixed = PhoneNumber(country_code=55, national_number=1123456789L)
184184
brNumberMobile = PhoneNumber(country_code=55, national_number=1161234567L,
185185
preferred_domestic_carrier_code="303")
186+
huNumberFixed= PhoneNumber(country_code=36, national_number=12345678L)
186187
self.assertEqual("0312345678",
187188
phonenumberutil.format_number_for_mobile_dialing(coNumberFixed, "CO", False))
188189
self.assertEqual("03 1 2345678",
@@ -203,3 +204,5 @@ def testFormatNumberForMobile(self):
203204
phonenumberutil.format_number_for_mobile_dialing(brNumberMobile, "BR", False))
204205
self.assertEqual("0 303 (11) 6123-4567",
205206
phonenumberutil.format_number_for_mobile_dialing(brNumberMobile, "BR", True))
207+
self.assertEqual("0612345678",
208+
phonenumberutil.format_number_for_mobile_dialing(huNumberFixed, "HU", False))

0 commit comments

Comments
 (0)