Skip to content

Commit f0dd9dd

Browse files
committed
[1.9.x] Fixed nonexistent tmc.edu domain in GeoIP test.
The test was silently skipped. Backport of e1f6eba from master
1 parent 69a2d0c commit f0dd9dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/gis_tests/test_geoip.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"GeoIP is required along with the GEOIP_PATH setting.")
3131
@ignore_warnings(category=RemovedInDjango20Warning)
3232
class GeoIPTest(unittest.TestCase):
33-
addr = '128.249.1.1'
34-
fqdn = 'tmc.edu'
33+
addr = '162.242.220.127'
34+
fqdn = 'www.djangoproject.com'
3535

3636
def _is_dns_available(self, domain):
3737
# Naive check to see if there is DNS available to use.
@@ -119,12 +119,12 @@ def test04_city(self):
119119
# City information dictionary.
120120
d = g.city(query)
121121
self.assertEqual('USA', d['country_code3'])
122-
self.assertEqual('Houston', d['city'])
122+
self.assertEqual('San Antonio', d['city'])
123123
self.assertEqual('TX', d['region'])
124-
self.assertEqual(713, d['area_code'])
124+
self.assertEqual(210, d['area_code'])
125125
geom = g.geos(query)
126126
self.assertIsInstance(geom, GEOSGeometry)
127-
lon, lat = (-95.4010, 29.7079)
127+
lon, lat = (-98, 29)
128128
lat_lon = g.lat_lon(query)
129129
lat_lon = (lat_lon[1], lat_lon[0])
130130
for tup in (geom.tuple, g.coords(query), g.lon_lat(query), lat_lon):

0 commit comments

Comments
 (0)