diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2015-11-25 23:59:57 +0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-11-25 17:31:24 -0500 |
| commit | f920be7c329b3de77d1ea306a6104487ce1228fb (patch) | |
| tree | 457e0a1a7f22c0bb2cb40791cd8fe933bf52ed90 /tests | |
| parent | 0cfe589f9563f283cbffd03d95c7f9e8e63345b9 (diff) | |
Fixed #25773 -- Deprecated the geos.MultiPolygon.cascaded_union property.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gis_tests/geos_tests/test_geos.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/gis_tests/geos_tests/test_geos.py b/tests/gis_tests/geos_tests/test_geos.py index 33cc7dea4a..da9db06c33 100644 --- a/tests/gis_tests/geos_tests/test_geos.py +++ b/tests/gis_tests/geos_tests/test_geos.py @@ -1203,3 +1203,9 @@ class GEOSTest(SimpleTestCase, TestDataMixin): p.set_coords((3, 2, 1)) self.assertEqual(p.get_coords(), (3, 2, 1)) + + @ignore_warnings(category=RemovedInDjango20Warning) + def test_deprecated_cascaded_union(self): + for geom in self.geometries.multipolygons: + mpoly = GEOSGeometry(geom.wkt) + self.assertEqual(mpoly.cascaded_union, mpoly.unary_union) |
