From d8d21d38915427cf357d7832bdeeead59b35e201 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Wed, 20 Jun 2018 16:47:55 +0500 Subject: [PATCH] Made test for GIS Envelope function more strict. --- tests/gis_tests/geoapp/test_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gis_tests/geoapp/test_functions.py b/tests/gis_tests/geoapp/test_functions.py index 2449650567..4b09cebb3e 100644 --- a/tests/gis_tests/geoapp/test_functions.py +++ b/tests/gis_tests/geoapp/test_functions.py @@ -214,7 +214,7 @@ class GISFunctionsTests(FuncTestMixin, TestCase): def test_envelope(self): countries = Country.objects.annotate(envelope=functions.Envelope('mpoly')) for country in countries: - self.assertIsInstance(country.envelope, Polygon) + self.assertTrue(country.envelope.equals(country.mpoly.envelope)) @skipUnlessDBFeature("has_ForcePolygonCW_function") def test_force_polygon_cw(self):