Added test for LineString.__iter__().
This commit is contained in:
parent
83440a1258
commit
1a742ea33b
|
@ -328,6 +328,9 @@ class GEOSTest(SimpleTestCase, TestDataMixin):
|
||||||
with self.assertRaisesMessage(TypeError, 'Invalid initialization input for LineStrings.'):
|
with self.assertRaisesMessage(TypeError, 'Invalid initialization input for LineStrings.'):
|
||||||
LineString('wrong input')
|
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):
|
def test_multilinestring(self):
|
||||||
"Testing MultiLineString objects."
|
"Testing MultiLineString objects."
|
||||||
prev = fromstr('POINT(0 0)')
|
prev = fromstr('POINT(0 0)')
|
||||||
|
|
Loading…
Reference in New Issue