mirror of https://github.com/django/django.git
[1.8.x] Fixed GeoIP test failure with the latest data.
This commit is contained in:
parent
e0b3681838
commit
d92f899cb5
|
@ -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'))
|
||||||
|
|
Loading…
Reference in New Issue