Permalink
Browse files

Added test for LineString.__iter__().

  • Loading branch information...
1 parent 83440a1 commit 1a742ea33b075731da4cf034eecff5bcac8f6f06 @sir-sigurd sir-sigurd committed Jul 12, 2017
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/gis_tests/geos_tests/test_geos.py
@@ -328,6 +328,9 @@ def test_linestring(self):
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)')

0 comments on commit 1a742ea

Please sign in to comment.