Wrapper to control stdout and stderr for a TestCase.
The streams for sys.stdout and sys.stderr are written to files in
the output directory specified for the test instance. The real
stdout and stderr streams are saved and restored after each test
execution, so that the TestRunner can show progress information as
usual.
Methods
|
|
__call__
__init__
popStreams
pushStreams
statusMessage
|
|
__call__
|
__call__ ( self, result=None )
Execute the test
|
|
__init__
|
__init__ (
self,
methodName,
outputDir=DEFAULT_OUTPUT_DIR,
statusMessageFunc=None,
)
Initialize
|
|
popStreams
|
popStreams ( self )
Replace the real sys streams
|
|
pushStreams
|
pushStreams ( self )
Substitute files for the sys streams
|
|
statusMessage
|
statusMessage (
self,
message,
level=1,
)
|
|