From d3c92afe426c1e0a2223bb0296162dff4d1af585 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 10 Sep 2015 13:14:48 -0400 Subject: [PATCH] Fixed a GeoIP2 test failure with the latest GeoIP2 database. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Düsseldorf now appears as Dusseldorf in the latest version of the GeoIP2 database. --- tests/gis_tests/test_geoip2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gis_tests/test_geoip2.py b/tests/gis_tests/test_geoip2.py index 71824c3916..290fb3509c 100644 --- a/tests/gis_tests/test_geoip2.py +++ b/tests/gis_tests/test_geoip2.py @@ -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'))