Table of Contents

Class: StreamFlushTest ../HappyDoc-r2_1/happydoclib/StreamFlushTest.py

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.

Base Classes   
unittest.TestCase
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,
        )


Table of Contents

This document was automatically generated on Sat Aug 24 16:57:23 2002 by HappyDoc version 2.1