@@ -23,7 +23,7 @@ def helper(self, geom, splitter, expected_chunks):
2323 raise ValueError
2424 elif expected_chunks == 1 :
2525 # not split --> expected equal to line
26- self .assertTrue (s [0 ].equals (geom ))
26+ self .assertTrue (s . geoms [0 ].equals (geom ))
2727
2828 def test_split_closed_line_with_point (self ):
2929 # point at start/end of closed ring -> return equal
@@ -175,15 +175,15 @@ def test_split_closed_ring_with_point(self):
175175 splitter = Point ([0.0 , 0.5 ])
176176 self .helper (self .ls , splitter , 2 )
177177 result = split (self .ls , splitter )
178- assert result [0 ].coords [:] == [(0 , 0 ), (0.0 , 0.5 )]
179- assert result [1 ].coords [:] == [(0.0 , 0.5 ), (0 , 1 ), (1 , 1 ), (1 , 0 ), (0 , 0 )]
178+ assert result . geoms [0 ].coords [:] == [(0 , 0 ), (0.0 , 0.5 )]
179+ assert result . geoms [1 ].coords [:] == [(0.0 , 0.5 ), (0 , 1 ), (1 , 1 ), (1 , 0 ), (0 , 0 )]
180180
181181 # previously failed, see GH#585
182182 splitter = Point ([0.5 , 0.0 ])
183183 self .helper (self .ls , splitter , 2 )
184184 result = split (self .ls , splitter )
185- assert result [0 ].coords [:] == [(0 , 0 ), (0 , 1 ), (1 , 1 ), (1 , 0 ), (0.5 , 0 )]
186- assert result [1 ].coords [:] == [(0.5 , 0 ), (0 , 0 )]
185+ assert result . geoms [0 ].coords [:] == [(0 , 0 ), (0 , 1 ), (1 , 1 ), (1 , 0 ), (0.5 , 0 )]
186+ assert result . geoms [1 ].coords [:] == [(0.5 , 0 ), (0 , 0 )]
187187
188188 splitter = Point ([2.0 , 2.0 ])
189189 self .helper (self .ls , splitter , 1 )
0 commit comments