/[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 1068 by bh, Tue May 27 15:02:37 2003 UTC revision 1125 by bh, Mon Jun 2 14:14:32 2003 UTC
# Line 68  class TestSessionSimple(unittest.TestCas Line 68  class TestSessionSimple(unittest.TestCas
68                                  ("BUILDING", 2.5, 3),                                  ("BUILDING", 2.5, 3),
69                                  ("HUT", 1e6, 4),                                  ("HUT", 1e6, 4),
70                                  ("LIGHTHOUSE", -0.01, 5)])                                  ("LIGHTHOUSE", -0.01, 5)])
71    
72            # The session should be unmodified before the AddTable call and
73            # modified afterwards and of course the table should show up in
74            # Tables
75            self.failIf(session.WasModified())
76          table = session.AddTable(memtable)          table = session.AddTable(memtable)
77          self.assertEquals(session.Tables(), [table])          self.assertEquals(session.Tables(), [table])
78            self.failUnless(session.WasModified())
79    
80      def test_open_table_file(self):      def test_open_table_file(self):
81          """Test Session.OpenTableFile()"""          """Test Session.OpenTableFile()"""

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26