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.
|
|
__init__(self,
testFunc,
setUp=None,
tearDown=None,
description=None)
Create an instance of the class that will use the named test method
when executed. |
|
|
|
|
setUp(self)
Hook method for setting up the test fixture before exercising it. |
|
|
|
|
tearDown(self)
Hook method for deconstructing the test fixture after testing it. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shortDescription(self)
Returns a one-line description of the test, or None if no description
has been provided. |
|
|
|
Inherited from TestCase:
__call__,
assertAlmostEqual,
assertAlmostEquals,
assertEqual,
assertEquals,
assertFalse,
assertNotAlmostEqual,
assertNotAlmostEquals,
assertNotEqual,
assertNotEquals,
assertRaises,
assertTrue,
assert_,
countTestCases,
debug,
defaultTestResult,
fail,
failIf,
failIfAlmostEqual,
failIfEqual,
failUnless,
failUnlessAlmostEqual,
failUnlessEqual,
failUnlessRaises,
run
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__
|