Fixed a GeoIP2 test failure with the latest GeoIP2 database.

Düsseldorf now appears as Dusseldorf in the latest version
of the GeoIP2 database.
This commit is contained in:
Tim Graham 2015-09-10 13:14:48 -04:00
parent dfced0921c
commit d3c92afe42
1 changed files with 2 additions and 2 deletions

View File

@ -124,8 +124,8 @@ class GeoIPTest(unittest.TestCase):
def test05_unicode_response(self): def test05_unicode_response(self):
"GeoIP strings should be properly encoded (#16553)." "GeoIP strings should be properly encoded (#16553)."
g = GeoIP2() g = GeoIP2()
d = g.city("duesseldorf.de") d = g.city("nigde.edu.tr")
self.assertEqual('Düsseldorf', d['city']) self.assertEqual('Niğde', d['city'])
d = g.country('200.26.205.1') d = g.country('200.26.205.1')
# Some databases have only unaccented countries # Some databases have only unaccented countries
self.assertIn(d['country_name'], ('Curaçao', 'Curacao')) self.assertIn(d['country_name'], ('Curaçao', 'Curacao'))