1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #26920 -- Made GEOSGeometry equality check consider the srid

This commit is contained in:
Jackie Leng
2016-11-23 09:23:06 +01:00
committed by Claude Paroz
parent 10d49b96e6
commit 50613d957a
8 changed files with 56 additions and 15 deletions

View File

@@ -36,7 +36,7 @@ class RelatedGeoModelTest(TestCase):
nm, st, lon, lat = ref
self.assertEqual(nm, c.name)
self.assertEqual(st, c.state)
self.assertEqual(Point(lon, lat), c.location.point)
self.assertEqual(Point(lon, lat, srid=c.location.point.srid), c.location.point)
@skipUnlessDBFeature("has_transform_method")
def test03_transform_related(self):