mirror of
https://github.com/django/django.git
synced 2025-03-12 18:30:48 +00:00
[1.10.x] Updated GeoIP test for latest database.
Backport of a0a1c4fbde4fb652b151a409db46c8ac3829ed2b from master
This commit is contained in:
parent
826ec5ee57
commit
8166f5e84a
@ -145,7 +145,7 @@ class GeoIPTest(unittest.TestCase):
|
||||
fqdn = "duesseldorf.de"
|
||||
if self._is_dns_available(fqdn):
|
||||
d = g.city(fqdn)
|
||||
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…
x
Reference in New Issue
Block a user