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.
Methods
|
|
__init__
__repr__
__str__
id
runTest
setUp
shortDescription
tearDown
|
|
__init__
|
__init__ (
self,
testFunc,
setUp=None,
tearDown=None,
description=None,
)
|
|
__repr__
|
__repr__ ( self )
|
|
__str__
|
__str__ ( self )
|
|
id
|
id ( self )
|
|
runTest
|
runTest ( self )
|
|
setUp
|
setUp ( self )
|
|
shortDescription
|
shortDescription ( self )
|
|
tearDown
|
tearDown ( self )
|
|