Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
unittest.suite._ErrorHolder Class Reference
Inheritance diagram for unittest.suite._ErrorHolder:
Inheritance graph
[legend]
Collaboration diagram for unittest.suite._ErrorHolder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def id
def shortDescription
def __repr__
def __str__
def run
def __call__
def countTestCases

Public Attributes

 description
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Static Public Attributes

 failureException = None

Detailed Description

Placeholder for a TestCase inside a result. As far as a TestResult
is concerned, this looks exactly like a unit test. Used to insert
arbitrary errors into a test suite run.

Definition at line 250 of file suite.py.


Constructor & Destructor Documentation

def unittest.suite._ErrorHolder.__init__ (   self,
  description 
)

Definition at line 262 of file suite.py.

00262 
00263     def __init__(self, description):
00264         self.description = description

Here is the caller graph for this function:


Member Function Documentation

def unittest.suite._ErrorHolder.__call__ (   self,
  result 
)

Definition at line 282 of file suite.py.

00282 
00283     def __call__(self, result):
00284         return self.run(result)

Definition at line 271 of file suite.py.

00271 
00272     def __repr__(self):
00273         return "<ErrorHolder description=%r>" % (self.description,)

Definition at line 274 of file suite.py.

00274 
00275     def __str__(self):
00276         return self.id()

Here is the call graph for this function:

Definition at line 285 of file suite.py.

00285 
00286     def countTestCases(self):
00287         return 0

Definition at line 265 of file suite.py.

00265 
00266     def id(self):
00267         return self.description

Here is the caller graph for this function:

def unittest.suite._ErrorHolder.run (   self,
  result 
)

Definition at line 277 of file suite.py.

00277 
00278     def run(self, result):
00279         # could call result.addError(...) - but this test-like object
00280         # shouldn't be run anyway
00281         pass

Here is the caller graph for this function:

Definition at line 268 of file suite.py.

00268 
00269     def shortDescription(self):
00270         return None

Here is the caller graph for this function:


Member Data Documentation

Definition at line 263 of file suite.py.

Definition at line 260 of file suite.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


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