Skip to content

Commit

Permalink
Extra test for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddrysdale committed Jan 25, 2017
1 parent d844403 commit c1c5d37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/tests/shortnumberinfotest.py
Expand Up @@ -83,6 +83,8 @@ def testIsCarrierSpecific(self):
self.assertTrue(shortnumberinfo.is_carrier_specific(carrierSpecificNumberForSomeRegion))
self.assertTrue(shortnumberinfo.is_carrier_specific_for_region(carrierSpecificNumberForSomeRegion, "US"))
self.assertFalse(shortnumberinfo.is_carrier_specific_for_region(carrierSpecificNumberForSomeRegion, "BB"))
# Python version extra test: check invalid region code
self.assertFalse(shortnumberinfo.is_carrier_specific_for_region(carrierSpecificNumberForSomeRegion, "XY"))

def testGetExpectedCost(self):
premiumRateExample = shortnumberinfo._example_short_number_for_cost("FR", ShortNumberCost.PREMIUM_RATE)
Expand Down

0 comments on commit c1c5d37

Please sign in to comment.