mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixed a GeoIP test failure with the latest data.
This commit is contained in:
parent
c5ebfda002
commit
4a696bbe13
1 changed files with 2 additions and 2 deletions
|
@ -142,10 +142,10 @@ class GeoIPTest(unittest.TestCase):
|
|||
def test05_unicode_response(self):
|
||||
"Testing that GeoIP strings are properly encoded, see #16553."
|
||||
g = GeoIP()
|
||||
fqdn = "duesseldorf.de"
|
||||
fqdn = "hs-duesseldorf.de"
|
||||
if self._is_dns_available(fqdn):
|
||||
d = g.city(fqdn)
|
||||
self.assertEqual('Ratingen', d['city'])
|
||||
self.assertEqual('Düsseldorf', d['city'])
|
||||
d = g.country('200.26.205.1')
|
||||
# Some databases have only unaccented countries
|
||||
self.assertIn(d['country_name'], ('Curaçao', 'Curacao'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue