Пример #1
0
 def test_name(self):
     country = mobile_codes.name(u'canada')
     self.assertEqual(country.name, u'Canada')
Пример #2
0
 def test_name(self):
     country = mobile_codes.name(u'antarctica')
     self.assertEqual(country.mcc, None)
Пример #3
0
 def test_name_fail(self):
     with pytest.raises(KeyError):
         mobile_codes.name("Neverland")
Пример #4
0
 def test_name(self):
     country = mobile_codes.name("canada")
     assert country.name == "Canada"
Пример #5
0
 def test_name(self):
     country = mobile_codes.name("antarctica")
     assert country.mcc is None
Пример #6
0
 def test_name(self):
     country = mobile_codes.name(u'antarctica')
     self.assertEqual(country.mcc, None)
Пример #7
0
 def test_name(self):
     country = mobile_codes.name(u'canada')
     self.assertEqual(country.name, u'Canada')