0
0
mirror of https://github.com/django/django.git synced 2024-11-29 06:03:25 +01:00

Updated GeoIP test for latest database.

This commit is contained in:
Tim Graham 2016-05-23 19:39:24 -04:00
parent 722344ee59
commit a0a1c4fbde

View File

@ -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'))