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

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

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

revision 957 by bh, Wed May 21 17:12:22 2003 UTC revision 1247 by bh, Thu Jun 19 19:53:36 2003 UTC
# Line 7  Line 7 
7    
8  """  """
9  Test loading a thuban session from a file  Test loading a thuban session from a file
10    
11    The tests in this file (test_load.py) are always be the tests for the
12    current version of the thuban file format. Tests for older versions can
13    be found in the version specific test modules, e.g. test_load_0_2 for
14    files created by Thuban 0.2.
15    
16    Maintenance of the test cases:
17    
18    When during a development period the file format is changed with respect
19    to the last released version for the first, the tests here should be
20    copied to the version specific test file.
21  """  """
22    
23  __version__ = "$Revision$"  __version__ = "$Revision$"
# Line 154  class TestSingleLayer(LoadSessionTest): Line 165  class TestSingleLayer(LoadSessionTest):
165          # Check the layer attributes          # Check the layer attributes
166          layer = layers[0]          layer = layers[0]
167          eq(layer.Title(), "My Layer")          eq(layer.Title(), "My Layer")
168          self.failUnless(filenames_equal(layer.filename,          self.failUnless(filenames_equal(layer.ShapeStore().FileName(),
169                                          os.path.join(self.temp_dir(),                                          os.path.join(self.temp_dir(),
170                                                       os.pardir, os.pardir,                                                       os.pardir, os.pardir,
171                                                       "Data", "iceland",                                                       "Data", "iceland",
# Line 257  class TestClassification(ClassificationT Line 268  class TestClassification(ClassificationT
268  '''  '''
269    
270      def test(self):      def test(self):
271          """Load a Thuban 0.2 session with a map and classified layers."""          """Load a Thuban session with a map and classified layers."""
272          session = load_session(self.filename())          session = load_session(self.filename())
273          self.session = session          self.session = session
274    

Legend:
Removed from v.957  
changed lines
  Added in v.1247

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26