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

This commit is contained in:
Tim Graham 2018-01-08 10:00:21 -05:00
parent e0b3681838
commit d92f899cb5
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class GeoIPTest(unittest.TestCase):
"Testing that GeoIP strings are properly encoded, see #16553." "Testing that GeoIP strings are properly encoded, see #16553."
g = GeoIP() g = GeoIP()
d = g.city("messe-duesseldorf.com") d = g.city("messe-duesseldorf.com")
self.assertEqual('Düsseldorf', d['city']) self.assertEqual('Essen', 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'))