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

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

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

revision 1174 by jonathan, Thu Jun 12 13:37:29 2003 UTC revision 1262 by jonathan, Fri Jun 20 14:15:30 2003 UTC
# Line 206  class TestLayer(unittest.TestCase, suppo Line 206  class TestLayer(unittest.TestCase, suppo
206              derived = DerivedShapeStore(store, store.Table())              derived = DerivedShapeStore(store, store.Table())
207              layer.SetShapeStore(derived)              layer.SetShapeStore(derived)
208              self.assert_(layer.ShapeStore() is derived)              self.assert_(layer.ShapeStore() is derived)
209    
210                # check that an exception is raised when the number
211                # of shapes differ from the number of rows in a table.
212                layer2 = Layer("Test Layer",
213                               self.open_shapefile("political.shp"))
214                store2 = layer2.ShapeStore()
215                self.assertRaises(ValueError,
216                                  DerivedShapeStore, store2, store.Table())
217    
218          finally:          finally:
219              store = derived = None              store = derived = None
220                layer2.Destroy()
221                store2 = None
222    
223    
224  class SetShapeStoreTests(unittest.TestCase, support.SubscriberMixin):  class SetShapeStoreTests(unittest.TestCase, support.SubscriberMixin):

Legend:
Removed from v.1174  
changed lines
  Added in v.1262

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26