Table of Contents

Class: StreamFlushTest ../HappyDoc-r2_0/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
  __call__ 
__call__ ( self,  result=None )

Execute the test

  __init__ 
__init__ (
        self,
        methodName,
        outputDir=DEFAULT_OUTPUT_DIR,
        )

Initialize

  popStreams 
popStreams ( self )

Replace the real sys streams

  pushStreams 
pushStreams ( self )

Substitute files for the sys streams


Table of Contents

This document was automatically generated on Sun Dec 30 07:30:04 2001 by HappyDoc version 2.0