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:
parent
dfced0921c
commit
d3c92afe42
|
@ -124,8 +124,8 @@ class GeoIPTest(unittest.TestCase):
|
|||
def test05_unicode_response(self):
|
||||
"GeoIP strings should be properly encoded (#16553)."
|
||||
g = GeoIP2()
|
||||
d = g.city("duesseldorf.de")
|
||||
self.assertEqual('Düsseldorf', d['city'])
|
||||
d = g.city("nigde.edu.tr")
|
||||
self.assertEqual('Niğde', d['city'])
|
||||
d = g.country('200.26.205.1')
|
||||
# Some databases have only unaccented countries
|
||||
self.assertIn(d['country_name'], ('Curaçao', 'Curacao'))
|
||||
|
|
Loading…
Reference in New Issue