Example #1
0
 def test_numeric(self):
     country = mobile_codes.numeric(u'010')
     self.assertEqual(country.mcc, None)
Example #2
0
 def test_numeric(self):
     country = mobile_codes.numeric(u'124')
     self.assertEqual(country.numeric, u'124')
Example #3
0
 def test_numeric_fail(self):
     with pytest.raises(KeyError):
         mobile_codes.numeric("000")
Example #4
0
 def test_numeric(self):
     country = mobile_codes.numeric("124")
     assert country.numeric == "124"
Example #5
0
 def test_numeric(self):
     country = mobile_codes.numeric("010")
     assert country.mcc is None
Example #6
0
 def test_numeric(self):
     country = mobile_codes.numeric(u'124')
     self.assertEqual(country.numeric, u'124')
Example #7
0
 def test_numeric(self):
     country = mobile_codes.numeric(u'010')
     self.assertEqual(country.mcc, None)