1from . import unittest, shapely20_deprecated 2 3from shapely import geometry 4 5 6class MultiLineTestCase(unittest.TestCase): 7 8 @shapely20_deprecated 9 def test_array_interface(self): 10 m = geometry.MultiLineString([((0, 0), (1, 1)), ((2, 2), (3, 3))]) 11 ai = m.geoms[0].__array_interface__ 12 self.assertEqual(ai['shape'], (2, 2)) 13