Package translate :: Package convert :: Module test_convert :: Class TestConvertCommand
[hide private]
[frames] | no frames]

Class TestConvertCommand

source code

Known Subclasses:

Tests running actual commands on files

Instance Methods [hide private]
 
setup_method(self, method)
creates a clean test directory for the given method
source code
 
teardown_method(self, method)
removes the test directory for the given method
source code
 
cleardir(self)
removes the test directory
source code
 
run_command(self, *argv, **kwargs)
runs the command via the main function, passing self.defaultoptions and keyword arguments as --long options and argv arguments straight
source code
 
get_testfilename(self, filename)
gets the path to the test file
source code
 
open_testfile(self, filename, mode='r')
opens the given filename in the testdirectory in the given mode
source code
 
create_testfile(self, filename, contents)
creates the given file in the testdirectory with the given contents
source code
 
read_testfile(self, filename)
reads the given file in the testdirectory and returns the contents
source code
 
help_check(self, options, option, last=False)
check that a help string occurs and remove it
source code
 
test_help(self)
tests getting help (returning the help_string so further tests can be done)
source code
Class Variables [hide private]
  convertmodule
Handles converting of files between formats (used by translate.convert tools)
  defaultoptions = {'progress': 'none', 'psyco': 'none'}
Class Variable Details [hide private]

convertmodule

Handles converting of files between formats (used by translate.convert tools)

Value:
translate.convert.convert