Skip to content

Commit

Permalink
Added test for LineString.__iter__().
Browse files Browse the repository at this point in the history
  • Loading branch information
sir-sigurd committed Jul 12, 2017
1 parent 83440a1 commit 1a742ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/gis_tests/geos_tests/test_geos.py
Expand Up @@ -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)')
Expand Down

0 comments on commit 1a742ea

Please sign in to comment.