|
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
|
|
|
|
|
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
|
|