1
0
mirror of https://github.com/django/django.git synced 2025-07-05 10:19:20 +00:00

[1.2.X] Fixed some a stale location and whitespace in GeoIP tests.

Backport of r14416 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14417 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Justin Bronn 2010-11-01 22:18:50 +00:00
parent 2854336cc2
commit 775165b236

View File

@ -87,7 +87,7 @@ class GeoIPTest(unittest.TestCase):
self.assertEqual(713, d['area_code']) self.assertEqual(713, d['area_code'])
geom = g.geos(query) geom = g.geos(query)
self.failIf(not isinstance(geom, GEOSGeometry)) self.failIf(not isinstance(geom, GEOSGeometry))
lon, lat = (-95.4152, 29.7755) lon, lat = (-95.3670, 29.7523)
lat_lon = g.lat_lon(query) lat_lon = g.lat_lon(query)
lat_lon = (lat_lon[1], lat_lon[0]) lat_lon = (lat_lon[1], lat_lon[0])
for tup in (geom.tuple, g.coords(query), g.lon_lat(query), lat_lon): for tup in (geom.tuple, g.coords(query), g.lon_lat(query), lat_lon):