1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00: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" fqdn = "duesseldorf.de"
if self._is_dns_available(fqdn): if self._is_dns_available(fqdn):
d = g.city(fqdn) d = g.city(fqdn)
self.assertEqual('Düsseldorf', d['city']) self.assertEqual('Ratingen', 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'))