Package lemon :: Package external :: Package Cheetah :: Package Tests :: Module unittest_local_copy :: Class TestResult
[show private | hide private]
[frames | no frames]

Class TestResult


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().

Method Summary
  __init__(self)
  __repr__(self)
  addError(self, test, err)
Called when an error has occurred...
  addFailure(self, test, err)
Called when a failure has occurred...
  addSuccess(self, test)
Called when a test has completed successfully...
  startTest(self, test)
Called when the given test is about to be run...
  stop(self)
Indicates that the tests should be aborted...
  stopTest(self, test)
Called when the given test has been run...
  wasSuccessful(self)
Tells whether or not this result was a success...

Method Details

addError(self, test, err)

Called when an error has occurred

addFailure(self, test, err)

Called when a failure has occurred

addSuccess(self, test)

Called when a test has completed successfully

startTest(self, test)

Called when the given test is about to be run

stop(self)

Indicates that the tests should be aborted

stopTest(self, test)

Called when the given test has been run

wasSuccessful(self)

Tells whether or not this result was a success

Generated by Epydoc 2.0 on Mon Nov 10 15:08:14 2003 http://epydoc.sf.net