Home | Trees | Index | Help |
|
---|
Package lemon :: Package external :: Package Cheetah :: Package Tests :: Module unittest_local_copy :: Class FunctionTestCase |
|
TestCase
--+
|
FunctionTestCase
A test case that wraps a test function. This is useful for slipping pre-existing test functions into the PyUnit framework. Optionally, set-up and tidy-up functions can be supplied. As with TestCase, the tidy-up ('tearDown') function will always be called if the set-up ('setUp') function ran successfully.
Method Summary | |
---|---|
__init__(self,
testFunc,
setUp,
tearDown,
description)
| |
__repr__(self)
| |
__str__(self)
| |
Returns a one-line description of the test, or None if no description has been provided. | |
id(self)
| |
runTest(self)
| |
Hook method for setting up the test fixture before exercising it. | |
Returns a one-line description of the test, or None if no description has been provided. | |
Hook method for deconstructing the test fixture after testing it. | |
Inherited from TestCase | |
| |
Fail the test unless the expression is true. | |
Fail if the two objects are unequal as determined by the '!=' operator. | |
Fail if the two objects are unequal as determined by the '!=' operator. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. | |
| |
Run the test without collecting errors in a TestResult... | |
| |
| |
Fail immediately, with the given message. | |
Fail the test if the expression is true. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail the test unless the expression is true. | |
Fail if the two objects are unequal as determined by the '!=' operator. | |
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. | |
| |
| |
| |
|
Class Variable Summary | |
---|---|
Inherited from TestCase | |
NoneType |
name = None |
Method Details |
---|
describe(self)Returns a one-line description of the test, or None if no description has been provided. The default implementation of this method returns the first line of the specified test method's docstring.
|
setUp(self)Hook method for setting up the test fixture before exercising it.
|
shortDescription(self)Returns a one-line description of the test, or None if no description has been provided. The default implementation of this method returns the first line of the specified test method's docstring.
|
tearDown(self)Hook method for deconstructing the test fixture after testing it.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Mon Nov 10 15:08:10 2003 | http://epydoc.sf.net |