/[thuban]/branches/WIP-pyshapelib-bramz/test/test_wxproj.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/test/test_wxproj.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1740 by bh, Tue Sep 23 12:26:19 2003 UTC revision 1864 by bh, Fri Oct 24 17:25:53 2003 UTC
# Line 64  class TestShapeCentroid(unittest.TestCas Line 64  class TestShapeCentroid(unittest.TestCas
64                                   (711378, 7191110),                                   (711378, 7191110),
65                                   epsilon=1)                                   epsilon=1)
66    
67        def test_invalid_shape_id(self):
68            """Test shape_centroid without an invalid shape id"""
69            self.assertRaises(ValueError, shape_centroid,
70                              self.shapefile.cobject(), -1, None, None,
71                              1, 1, 0, 0)
72            self.assertRaises(ValueError, shape_centroid,
73                              self.shapefile.cobject(), 1000000, None, None,
74                              1, 1, 0, 0)
75    
76  if __name__ == "__main__":  if __name__ == "__main__":
77      support.run_tests()      support.run_tests()

Legend:
Removed from v.1740  
changed lines
  Added in v.1864

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26