|
30 | 30 | "GeoIP is required along with the GEOIP_PATH setting.")
|
31 | 31 | @ignore_warnings(category=RemovedInDjango20Warning)
|
32 | 32 | 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' |
35 | 35 |
|
36 | 36 | def _is_dns_available(self, domain):
|
37 | 37 | # Naive check to see if there is DNS available to use.
|
@@ -119,12 +119,12 @@ def test04_city(self):
|
119 | 119 | # City information dictionary.
|
120 | 120 | d = g.city(query)
|
121 | 121 | self.assertEqual('USA', d['country_code3'])
|
122 |
| - self.assertEqual('Houston', d['city']) |
| 122 | + self.assertEqual('San Antonio', d['city']) |
123 | 123 | self.assertEqual('TX', d['region'])
|
124 |
| - self.assertEqual(713, d['area_code']) |
| 124 | + self.assertEqual(210, d['area_code']) |
125 | 125 | geom = g.geos(query)
|
126 | 126 | self.assertIsInstance(geom, GEOSGeometry)
|
127 |
| - lon, lat = (-95.4010, 29.7079) |
| 127 | + lon, lat = (-98, 29) |
128 | 128 | lat_lon = g.lat_lon(query)
|
129 | 129 | lat_lon = (lat_lon[1], lat_lon[0])
|
130 | 130 | for tup in (geom.tuple, g.coords(query), g.lon_lat(query), lat_lon):
|
|
0 commit comments