mirror of
https://github.com/django/django.git
synced 2025-07-22 10:39:13 +00:00
[1.11.x] Fixed GeoIP test failure with the latest data.
This commit is contained in:
parent
dba6075b07
commit
1bf0e5c43c
@ -145,7 +145,7 @@ class GeoIPTest(unittest.TestCase):
|
||||
fqdn = "messe-duesseldorf.com"
|
||||
if self._is_dns_available(fqdn):
|
||||
d = g.city(fqdn)
|
||||
self.assertEqual('Düsseldorf', d['city'])
|
||||
self.assertEqual('Essen', d['city'])
|
||||
d = g.country('200.26.205.1')
|
||||
# Some databases have only unaccented countries
|
||||
self.assertIn(d['country_name'], ('Curaçao', 'Curacao'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user