summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-10-11 19:31:13 -0400
committerTim Graham <timograham@gmail.com>2016-10-11 19:44:09 -0400
commit1c4334f7935a6f37fdb84434a58be098de152bda (patch)
tree860882c064d4474bcfa2f6b925b4ca9880944786
parent3141b79d26ea2075c38b7b1779325f5b8b9c3baf (diff)
downloaddjango-1c4334f7935a6f37fdb84434a58be098de152bda.tar.gz
[1.8.x] Fixed nonexistent tmc.edu domain in GeoIP test.
Backport of e1f6eba033abea25cd6b0577bd66c655ec453325 from master
-rw-r--r--tests/gis_tests/test_geoip.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/gis_tests/test_geoip.py b/tests/gis_tests/test_geoip.py
index 3d7a10505f..b7bb24c7f3 100644
--- a/tests/gis_tests/test_geoip.py
+++ b/tests/gis_tests/test_geoip.py
@@ -26,8 +26,8 @@ if HAS_GEOS:
@skipUnless(HAS_GEOIP and getattr(settings, "GEOIP_PATH", None),
"GeoIP is required along with the GEOIP_PATH setting.")
class GeoIPTest(unittest.TestCase):
- addr = '128.249.1.1'
- fqdn = 'tmc.edu'
+ addr = '162.242.220.127'
+ fqdn = 'www.djangoproject.com'
def test01_init(self):
"Testing GeoIP initialization."
@@ -98,12 +98,12 @@ class GeoIPTest(unittest.TestCase):
# City information dictionary.
d = g.city(query)
self.assertEqual('USA', d['country_code3'])
- self.assertEqual('Houston', d['city'])
+ self.assertEqual('San Antonio', d['city'])
self.assertEqual('TX', d['region'])
- self.assertEqual(713, d['area_code'])
+ self.assertEqual(210, d['area_code'])
geom = g.geos(query)
self.assertIsInstance(geom, GEOSGeometry)
- lon, lat = (-95.4010, 29.7079)
+ lon, lat = (-98, 29)
lat_lon = g.lat_lon(query)
lat_lon = (lat_lon[1], lat_lon[0])
for tup in (geom.tuple, g.coords(query), g.lon_lat(query), lat_lon):