Skip to content

Commit

Permalink
Made test for GIS Envelope function more strict.
Browse files Browse the repository at this point in the history
  • Loading branch information
sir-sigurd committed Jun 20, 2018
1 parent 7409d21 commit d8d21d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/gis_tests/geoapp/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def test_difference_mixed_srid(self):
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):
Expand Down

0 comments on commit d8d21d3

Please sign in to comment.