/usr/share/pyshared/shapely/tests/test_box.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 15 16 17 18 19 | import unittest
from shapely import geometry
class BoxTestCase(unittest.TestCase):
def test_ccw(self):
b = geometry.box(0, 0, 1, 1, ccw=True)
self.assertEqual(b.exterior.coords[0], (1.0, 0.0))
self.assertEqual(b.exterior.coords[1], (1.0, 1.0))
def test_ccw_default(self):
b = geometry.box(0, 0, 1, 1)
self.assertEqual(b.exterior.coords[0], (1.0, 0.0))
self.assertEqual(b.exterior.coords[1], (1.0, 1.0))
def test_cw(self):
b = geometry.box(0, 0, 1, 1, ccw=False)
self.assertEqual(b.exterior.coords[0], (0.0, 0.0))
self.assertEqual(b.exterior.coords[1], (0.0, 1.0))
def test_suite():
return unittest.TestLoader().loadTestsFromTestCase(BoxTestCase)
|