[1.8.x] Fixed a GeoIP test failure with the latest data.

Backport of 4a696bbe13 from master
This commit is contained in:
Tim Graham 2016-08-03 11:08:30 -04:00
parent 33939f0183
commit fdd1d247c4
1 changed files with 2 additions and 2 deletions

View File

@ -113,8 +113,8 @@ class GeoIPTest(unittest.TestCase):
def test05_unicode_response(self):
"Testing that GeoIP strings are properly encoded, see #16553."
g = GeoIP()
d = g.city("duesseldorf.de")
self.assertEqual('Ratingen', d['city'])
d = g.city("hs-duesseldorf.de")
self.assertEqual('Düsseldorf', d['city'])
d = g.country('200.26.205.1')
# Some databases have only unaccented countries
self.assertIn(d['country_name'], ('Curaçao', 'Curacao'))