Skip to content

Commit

Permalink
[1.9.x] Fixed nonexistent tmc.edu domain in GeoIP test.
Browse files Browse the repository at this point in the history
The test was silently skipped.

Backport of e1f6eba from master
  • Loading branch information
timgraham committed Oct 11, 2016
1 parent 69a2d0c commit f0dd9dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/gis_tests/test_geoip.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"GeoIP is required along with the GEOIP_PATH setting.")
@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.
Expand Down Expand Up @@ -119,12 +119,12 @@ def test04_city(self):
# 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):
Expand Down

0 comments on commit f0dd9dd

Please sign in to comment.