diff options
| author | Claude Paroz <claude@2xlibre.net> | 2015-06-25 21:47:54 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2015-06-25 21:47:54 +0200 |
| commit | 3f9dca62cb31a2b4b279b7d312a850660d21e91f (patch) | |
| tree | a7e6b06a39b333e601a4c1ee78ee152ab10b90bb | |
| parent | b43b27bcdf84e816b886d4daf83131949708cecb (diff) | |
Updated GeoIP test for newer versions
| -rw-r--r-- | tests/gis_tests/test_geoip.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/gis_tests/test_geoip.py b/tests/gis_tests/test_geoip.py index d456dca1bf..bf16abb930 100644 --- a/tests/gis_tests/test_geoip.py +++ b/tests/gis_tests/test_geoip.py @@ -113,7 +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("www.osnabrueck.de") - self.assertEqual('Osnabrück', d['city']) - d = g.country('200.7.49.81') - self.assertEqual('Curaçao', d['country_name']) + d = g.city("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')) |
