def test_invalid_country_code(self): continent, country = locale.country_code_to_layout_keys('XXX') self.verify_layout_keys_exist(continent, country) self.assertEqual(country, 'United States') self.assertEqual(continent, 'america')
def test_valid_country_code_europe(self): continent, country = locale.country_code_to_layout_keys('GB') self.verify_layout_keys_exist(continent, country) self.assertEqual(country, 'United Kingdom') self.assertEqual(continent, 'europe')
def test_valid_country_code_americas(self): continent, country = locale.country_code_to_layout_keys('AR') self.verify_layout_keys_exist(continent, country) self.assertEqual(country, 'Argentina') self.assertEqual(continent, 'america')