This file is indexed.

/usr/share/pyshared/shapely/tests/test_products_z.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
12
13
14
import unittest
from shapely.geometry import LineString

class ProductZTestCase(unittest.TestCase):
    def test_line_intersection(self):
        line1 = LineString([(0,0,0), (1,1,1)])
        line2 = LineString([(0,1,1), (1,0,0)])
        interxn = line1.intersection(line2)
        self.failUnless(interxn.has_z)
        self.failUnless(interxn._ndim == 3)
        self.failUnless(0.0 <= interxn.z <= 1.0)

def test_suite():
    return unittest.TestLoader().loadTestsFromTestCase(ProductZTestCase)