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

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

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

revision 1125 by bh, Mon Jun 2 14:14:32 2003 UTC revision 1401 by jonathan, Thu Jul 10 14:56:25 2003 UTC
# Line 179  class UnreferencedTablesTests(unittest.T Line 179  class UnreferencedTablesTests(unittest.T
179                                [self.roads_line, joined])                                [self.roads_line, joined])
180              # Creating a DerivedShapeStore that references the joined table              # Creating a DerivedShapeStore that references the joined table
181              # will remove it from the list of unreferenced tables,              # will remove it from the list of unreferenced tables,
182              store = self.session.OpenShapefile(os.path.join("..", "Data",              store = self.session.OpenShapefile(
183                                                              "iceland",                  os.path.join("..", "Data", "iceland",
184                                                              "political.dbf"))                               "cultural_landmark-point.dbf"))
185              derived = DerivedShapeStore(store, joined)              derived = DerivedShapeStore(store, joined)
186              self.session.AddShapeStore(derived)              self.session.AddShapeStore(derived)
187              self.assertEquals(self.session.UnreferencedTables(),              self.assertEquals(self.session.UnreferencedTables(),
# Line 319  class TestSessionWithContent(TestSession Line 319  class TestSessionWithContent(TestSession
319          proj = Projection(["zone=26", "proj=utm", "ellps=clrk66"])          proj = Projection(["zone=26", "proj=utm", "ellps=clrk66"])
320          self.map.SetProjection(proj)          self.map.SetProjection(proj)
321          self.assert_(self.session.WasModified())          self.assert_(self.session.WasModified())
322          self.check_messages([(self.map, MAP_PROJECTION_CHANGED),          self.check_messages([(self.map, None, MAP_PROJECTION_CHANGED),
323                               (self.session, CHANGED)])                               (self.session, CHANGED)])
324    
325      def test_forwarding_fill(self):      def test_forwarding_fill(self):

Legend:
Removed from v.1125  
changed lines
  Added in v.1401

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26