MCPcopy
hub / github.com/django/django / test_envelope

Method test_envelope

tests/gis_tests/geoapp/test_functions.py:346–349  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

344
345 @skipUnlessDBFeature("has_Envelope_function")
346 def test_envelope(self):
347 countries = Country.objects.annotate(envelope=functions.Envelope("mpoly"))
348 for country in countries:
349 self.assertTrue(country.envelope.equals(country.mpoly.envelope))
350
351 @skipUnlessDBFeature("has_ForcePolygonCW_function")
352 def test_force_polygon_cw(self):

Callers

nothing calls this directly

Calls 2

annotateMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected