Updated GeoIP test for latest database.
This commit is contained in:
parent
722344ee59
commit
a0a1c4fbde
|
@ -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…
Reference in New Issue