[1.8.x] Updated GeoIP test for latest database.
Backport of a0a1c4fbde
from master
This commit is contained in:
parent
e06bbf8fc3
commit
72da26af41
tests/gis_tests
|
@ -114,7 +114,7 @@ class GeoIPTest(unittest.TestCase):
|
|||
"Testing that GeoIP strings are properly encoded, see #16553."
|
||||
g = GeoIP()
|
||||
d = g.city("duesseldorf.de")
|
||||
self.assertEqual('Düsseldorf', d['city'])
|
||||
self.assertEqual('Ratingen', d['city'])
|
||||
d = g.country('200.26.205.1')
|
||||
# Some databases have only unaccented countries
|
||||
self.assertIn(d['country_name'], ('Curaçao', 'Curacao'))
|
||||
|
|
Loading…
Reference in New Issue