From 7a22d9f75125e3cfbea0979a876efe4634f6fe05 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 17 Apr 2018 21:30:05 -0400 Subject: [PATCH] Fixed a test failure with the latest GeoIP2 database. --- tests/gis_tests/test_geoip2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/gis_tests/test_geoip2.py b/tests/gis_tests/test_geoip2.py index 158b014abc9..d8659cd3235 100644 --- a/tests/gis_tests/test_geoip2.py +++ b/tests/gis_tests/test_geoip2.py @@ -140,10 +140,10 @@ class GeoIPTest(SimpleTestCase): @mock.patch('socket.gethostbyname') def test05_unicode_response(self, gethostbyname): "GeoIP strings should be properly encoded (#16553)." - gethostbyname.return_value = '191.252.51.69' + gethostbyname.return_value = '194.27.42.76' g = GeoIP2() - d = g.city('www.fasano.com.br') - self.assertEqual(d['city'], 'São José dos Campos') + 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'))