Home | Trees | Index | Help |
|
---|
Package testoob :: Module testing |
|
Exceptions | |
---|---|
TestoobAssertionError |
Function Summary | |
---|---|
works like unittest.TestCase.assertEquals | |
fail unless regex matches actual (using re.search) | |
Assert that a callable raises an exception, similar to unittest.py's assertRaises. | |
assert_true(condition,
msg)
| |
| |
Skip this test | |
Generate a human-friendly call signature | |
_normalize_newlines(string)
| |
_run_command(args, input=None) -> stdoutstring, stderrstring, returncode Runs the command, giving the input if any. |
Variable Summary | |
---|---|
int |
__unittest = 1 |
Function Details |
---|
assert_equals(expected, actual, msg=None, filter=None)works like unittest.TestCase.assertEquals |
assert_matches(regex, actual, msg=None, filter=None)fail unless regex matches actual (using re.search) |
assert_raises(exception_class, callable, *args, **kwargs)Assert that a callable raises an exception, similar to unittest.py's assertRaises. Takes more ideas and code from recipe http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/307970 |
command_line(args, input=None, expected_output=None, expected_error=None, expected_output_regex=None, expected_error_regex=None, expected_rc=None, rc_predicate=None, skip_check=None)
|
skip(reason='No reason given')Skip this test |
_call_signature(callable, *args, **kwargs)Generate a human-friendly call signature From recipe http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/307970 |
_run_command(args, input=None)_run_command(args, input=None) -> stdoutstring, stderrstring, returncode Runs the command, giving the input if any. The command is specified as a list: 'ls -l' would be sent as ['ls', '-l']. Returns the standard output and error as strings, and the return code |
Variable Details |
---|
__unittest
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Dec 3 15:27:57 2006 | http://epydoc.sf.net |