def test_name(self): country = mobile_codes.name(u'canada') self.assertEqual(country.name, u'Canada')
def test_name(self): country = mobile_codes.name(u'antarctica') self.assertEqual(country.mcc, None)
def test_name_fail(self): with pytest.raises(KeyError): mobile_codes.name("Neverland")
def test_name(self): country = mobile_codes.name("canada") assert country.name == "Canada"
def test_name(self): country = mobile_codes.name("antarctica") assert country.mcc is None