diff options
| author | Tim Graham <timograham@gmail.com> | 2016-10-11 19:31:13 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-10-11 19:40:34 -0400 |
| commit | fba2c16a6f6ff062e13faa8b310f69d5e464956a (patch) | |
| tree | 1d627e7ab41943d1c5617dcef4f054bc66f233fe /tests | |
| parent | 43792137e0da79d60144a1195db8bb4bb6134a85 (diff) | |
[1.10.x] Fixed nonexistent tmc.edu domain in GeoIP test.
The test was silently skipped.
Backport of e1f6eba033abea25cd6b0577bd66c655ec453325 from master
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gis_tests/test_geoip.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/gis_tests/test_geoip.py b/tests/gis_tests/test_geoip.py index fc1b8450f3..4871386ef8 100644 --- a/tests/gis_tests/test_geoip.py +++ b/tests/gis_tests/test_geoip.py @@ -32,8 +32,8 @@ if HAS_GEOIP: ) @ignore_warnings(category=RemovedInDjango20Warning) class GeoIPTest(unittest.TestCase): - addr = '128.249.1.1' - fqdn = 'tmc.edu' + addr = '162.242.220.127' + fqdn = 'www.djangoproject.com' def _is_dns_available(self, domain): # Naive check to see if there is DNS available to use. @@ -127,12 +127,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): |
