#NEWLINE# def testGetExpectedCostForSharedCountryCallingCode( self ) : #NEWLINE# #INDENT# ambiguousPremiumRateString = '1234' #NEWLINE# ambiguousPremiumRateNumber = PhoneNumber ( country_code = 61 , national_number = 1234 ) #NEWLINE# ambiguousStandardRateString = '1194' #NEWLINE# ambiguousStandardRateNumber = PhoneNumber ( country_code = 61 , national_number = 1194 ) #NEWLINE# ambiguousTollFreeString = '733' #NEWLINE# ambiguousTollFreeNumber = PhoneNumber ( country_code = 61 , national_number = 733 ) #NEWLINE# self . assertTrue ( shortnumberinfo . is_valid_short_number ( ambiguousPremiumRateNumber ) ) #NEWLINE# self . assertTrue ( shortnumberinfo . is_valid_short_number ( ambiguousStandardRateNumber ) ) #NEWLINE# self . assertTrue ( shortnumberinfo . is_valid_short_number ( ambiguousTollFreeNumber ) ) #NEWLINE# self . assertTrue ( shortnumberinfo . is_valid_short_number_for_region ( _parse ( ambiguousPremiumRateString , 'AU' ) , 'AU' ) ) #NEWLINE# self . assertEqual ( ShortNumberCost . PREMIUM_RATE , shortnumberinfo . expected_cost_for_region ( _parse ( ambiguousPremiumRateString , 'AU' ) , 'AU' ) ) #NEWLINE# self . assertFalse ( shortnumberinfo . is_valid_short_number_for_region ( _parse ( ambiguousPremiumRateString , 'CX' ) , 'CX' ) ) #NEWLINE# self . assertEqual ( ShortNumberCost . UNKNOWN_COST , shortnumberinfo . expected_cost_for_region ( _parse ( ambiguousPremiumRateString , 'CX' ) , 'CX' ) ) #NEWLINE# self . assertEqual ( ShortNumberCost . PREMIUM_RATE , shortnumberinfo . expected_cost ( ambiguousPremiumRateNumber ) ) #NEWLINE# self . assertTrue ( shortnumberinfo . is_valid_short_number_for_region ( _parse ( ambiguousStandardRateString , 'AU' ) , 'AU' ) ) #NEWLINE# self . assertEqual ( ShortNumberCost . STANDARD_RATE , shortnumberinfo . expected_cost_for_region ( _parse ( ambiguousStandardRateString , 'AU' ) , 'AU' ) ) #NEWLINE# self . assertFalse ( shortnumberinfo . is_valid_short_number_for_region ( _parse ( ambiguousStandardRateString , 'CX' ) , 'CX' ) ) #NEWLINE# self . assertEqual ( ShortNumberCost . UNKNOWN_COST , shortnumberinfo . expected_cost_for_region ( _parse ( ambiguousStandardRateString , 'CX' ) , 'CX' ) ) #NEWLINE# self . assertEqual ( ShortNumberCost . UNKNOWN_COST , shortnumberinfo . expected_cost ( ambiguousStandardRateNumber ) ) #NEWLINE# self . assertTrue ( shortnumberinfo . is_valid_short_number_for_region ( _parse ( ambiguousTollFreeString , 'AU' ) , 'AU' ) ) #NEWLINE# self . assertEqual ( ShortNumberCost . TOLL_FREE , shortnumberinfo . expected_cost_for_region ( _parse ( ambiguousTollFreeString , 'AU' ) , 'AU' ) ) #NEWLINE# self . assertFalse ( shortnumberinfo . is_valid_short_number_for_region ( _parse ( ambiguousTollFreeString , 'CX' ) , 'CX' ) ) #NEWLINE# self . assertEqual ( ShortNumberCost . UNKNOWN_COST , shortnumberinfo . expected_cost_for_region ( _parse ( ambiguousTollFreeString , 'CX' ) , 'CX' ) ) #NEWLINE# self . assertEqual ( ShortNumberCost . UNKNOWN_COST , shortnumberinfo . expected_cost ( ambiguousTollFreeNumber ) )