Refs #26333 -- Reverted inadvertent edits to fix tests.

This commit is contained in:
Tim Graham 2016-05-13 12:21:44 -04:00
parent e158ec0ba0
commit d7334b405f
1 changed files with 2 additions and 2 deletions

View File

@ -1259,13 +1259,13 @@ class GEOSTest(SimpleTestCase, TestDataMixin):
ls = LineString(((0, 0), (1, 1))) ls = LineString(((0, 0), (1, 1)))
path, args, kwargs = ls.deconstruct() path, args, kwargs = ls.deconstruct()
self.assertEqual(path, 'django.contrib.gis.geos.linestring.LineString') self.assertEqual(path, 'django.contrib.gis.geos.linestring.LineString')
self.assertEqual(args, (((0, 0), (1, 1)))) self.assertEqual(args, (((0, 0), (1, 1)),))
self.assertEqual(kwargs, {}) self.assertEqual(kwargs, {})
ls2 = LineString([Point(0, 0), Point(1, 1)], srid=4326) ls2 = LineString([Point(0, 0), Point(1, 1)], srid=4326)
path, args, kwargs = ls2.deconstruct() path, args, kwargs = ls2.deconstruct()
self.assertEqual(path, 'django.contrib.gis.geos.linestring.LineString') self.assertEqual(path, 'django.contrib.gis.geos.linestring.LineString')
self.assertEqual(args, ([Point(0, 0), Point(1, 1)])) self.assertEqual(args, ([Point(0, 0), Point(1, 1)],))
self.assertEqual(kwargs, {'srid': 4326}) self.assertEqual(kwargs, {'srid': 4326})
ext_coords = ((0, 0), (0, 1), (1, 1), (1, 0), (0, 0)) ext_coords = ((0, 0), (0, 1), (1, 1), (1, 0), (0, 0))