Kaydet (Commit) d8d21d38 authored tarafından Sergey Fedoseev's avatar Sergey Fedoseev

Made test for GIS Envelope function more strict.

üst 7409d21a
...@@ -214,7 +214,7 @@ class GISFunctionsTests(FuncTestMixin, TestCase): ...@@ -214,7 +214,7 @@ class GISFunctionsTests(FuncTestMixin, TestCase):
def test_envelope(self): def test_envelope(self):
countries = Country.objects.annotate(envelope=functions.Envelope('mpoly')) countries = Country.objects.annotate(envelope=functions.Envelope('mpoly'))
for country in countries: for country in countries:
self.assertIsInstance(country.envelope, Polygon) self.assertTrue(country.envelope.equals(country.mpoly.envelope))
@skipUnlessDBFeature("has_ForcePolygonCW_function") @skipUnlessDBFeature("has_ForcePolygonCW_function")
def test_force_polygon_cw(self): def test_force_polygon_cw(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment