Table of Contents

Class: TestResult Twisted-0.19.0/pyunit/unittest.py

Holder for test result information.

Test results are automatically managed by the TestCase and TestSuite classes, and do not need to be explicitly manipulated by writers of tests.

Each instance holds the total number of tests run, and collections of failures and errors that occurred among those test runs. The collections contain tuples of (testcase, exceptioninfo), where exceptioninfo is a tuple of values as returned by sys.exc_info().

Methods   
__init__
__repr__
addError
addFailure
addSuccess
startTest
stop
stopTest
wasSuccessful
  __init__ 
__init__ ( self )

  __repr__ 
__repr__ ( self )

  addError 
addError (
        self,
        test,
        err,
        )

Called when an error has occurred

  addFailure 
addFailure (
        self,
        test,
        err,
        )

Called when a failure has occurred

  addSuccess 
addSuccess ( self,  test )

Called when a test has completed successfully

  startTest 
startTest ( self,  test )

Called when the given test is about to be run

  stop 
stop ( self )

Indicates that the tests should be aborted

  stopTest 
stopTest ( self,  test )

Called when the given test has been run

  wasSuccessful 
wasSuccessful ( self )

Tells whether or not this result was a success


Table of Contents

This document was automatically generated on Sun Jul 14 19:52:29 2002 by HappyDoc version 2.0