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

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

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

revision 1839 by bh, Tue Oct 21 09:58:51 2003 UTC revision 2624 by bh, Mon May 9 18:36:02 2005 UTC
# Line 1  Line 1 
1  # Copyright (c) 2002, 2003 by Intevation GmbH  # Copyright (c) 2002, 2003, 2004 by Intevation GmbH
2  # Authors:  # Authors:
3  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
4  #  #
# Line 58  def initthuban(): Line 58  def initthuban():
58              pass              pass
59          add_thuban_dir_to_path()          add_thuban_dir_to_path()
60          import thubaninit          import thubaninit
61    
62            # Install a dummy translation function so that importing
63            # Thuban.UI doesn't install a wx specific one for which would
64            # need to import wxPython
65            import Thuban
66            Thuban.install_translation_function(lambda s: s)
67    
68          _initthuban_done = 1          _initthuban_done = 1
69    
70    
# Line 261  class FileLoadTestCase(unittest.TestCase Line 268  class FileLoadTestCase(unittest.TestCase
268      def filename(self):      def filename(self):
269          """Return the name of the test file to use.          """Return the name of the test file to use.
270    
271          The default implementation simply calls self.volatile_file_name          The default implementation simply calls self.temp_file_name with
272          with a basename derived from the class name by stripping off a          a basename derived from the class name by stripping off a
273          leading 'test_' and appending self.file_extension.          leading 'test_' and appending self.file_extension.
274          """          """
275          name = self.__class__.__name__          name = self.__class__.__name__

Legend:
Removed from v.1839  
changed lines
  Added in v.2624

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26