diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2017-07-12 22:13:06 +0500 |
|---|---|---|
| committer | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2017-07-12 22:13:45 +0500 |
| commit | 1a742ea33b075731da4cf034eecff5bcac8f6f06 (patch) | |
| tree | 0119d2f59231bd3c7b7535ae7a1a607c9fb28373 | |
| parent | 83440a1258ab2e0c29ce2c5d3586456ece20b633 (diff) | |
Added test for LineString.__iter__().
| -rw-r--r-- | tests/gis_tests/geos_tests/test_geos.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gis_tests/geos_tests/test_geos.py b/tests/gis_tests/geos_tests/test_geos.py index c75ef31d70..2c94cc165f 100644 --- a/tests/gis_tests/geos_tests/test_geos.py +++ b/tests/gis_tests/geos_tests/test_geos.py @@ -328,6 +328,9 @@ class GEOSTest(SimpleTestCase, TestDataMixin): with self.assertRaisesMessage(TypeError, 'Invalid initialization input for LineStrings.'): LineString('wrong input') + # Test __iter__(). + self.assertEqual(list(LineString((0, 0), (1, 1), (2, 2))), [(0, 0), (1, 1), (2, 2)]) + def test_multilinestring(self): "Testing MultiLineString objects." prev = fromstr('POINT(0 0)') |
