/usr/share/pyshared/shapely/tests/test_geomseq.py is in python-shapely 1.2.14-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | import unittest
from shapely import geometry
class MultiLineTestCase(unittest.TestCase):
def test_array_interface(self):
m = geometry.MultiLineString([((0, 0), (1, 1)), ((2, 2), (3, 3))])
ai = m.geoms[0].__array_interface__
self.failUnlessEqual(ai['shape'], (2, 2))
def test_suite():
return unittest.TestLoader().loadTestsFromTestCase(MultiLineTestCase)
|