Logo Search packages:      
Sourcecode: karrigell version File versions  Download package

Cheetah::Tests::unittest_local_copy::TestCase Class Reference

Inheritance diagram for Cheetah::Tests::unittest_local_copy::TestCase:


List of all members.

Detailed Description

A class whose instances are single test cases.

By default, the test code itself should be placed in a method named

If the fixture may be used for many test cases, create as
many test methods as are needed. When instantiating such a TestCase
subclass, specify in the constructor arguments the name of the test method
that the instance is to execute.

Test authors should subclass TestCase for their own tests. Construction
and deconstruction of the test's environment ('fixture') can be
implemented by overriding the 'setUp' and 'tearDown' methods respectively.

If it is necessary to override the __init__ method, the base class
__init__ method must always be called. It is important that subclasses
should not change the signature of their __init__ method, since instances
of the classes are instantiated automatically by parts of the framework
in order to be run.

Definition at line 170 of file unittest_local_copy.py.

Public Member Functions

def __call__
def __init__
def __repr__
def __str__
def countTestCases
def debug
def defaultTestResult
 internal methods
def describe
def explain
def fail
 methods for use by the test cases
def failIf
def failIfAlmostEqual
def failIfEqual
def failUnless
def failUnlessAlmostEqual
def failUnlessEqual
def failUnlessRaises
def id
def run
def setDescription
def setExplanation
def setId
def setUp
 core methods
def tearDown

Static Public Attributes

 assert_ = failUnless
 assertAlmostEqual = assertAlmostEqualsfailUnlessAlmostEqual
 assertEqual = assertEqualsfailUnlessEqual
 assertNotAlmostEqual = assertNotAlmostEqualsfailIfAlmostEqual
 assertNotEqual = assertNotEqualsfailIfEqual
 assertRaises = failUnlessRaises
 failureException = AssertionError
 name = None
 shortDescription = describe

Private Member Functions

def __exc_info
def _setupMetaData
 meta data methods
def _setupTestMethod

Private Attributes


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index