Back to index

python3.2  3.2.2
Classes | Functions | Variables
unittest.suite Namespace Reference

Classes

class  BaseTestSuite
class  TestSuite
class  _ErrorHolder
class  _DebugResult

Functions

def _call_if_exists
def _isnotsuite

Variables

 __unittest = True

Detailed Description

TestSuite

Function Documentation

def unittest.suite._call_if_exists (   parent,
  attr 
) [private]

Definition at line 11 of file suite.py.

00011 
00012 def _call_if_exists(parent, attr):
00013     func = getattr(parent, attr, lambda: None)
00014     func()
00015 

Here is the call graph for this function:

Here is the caller graph for this function:

def unittest.suite._isnotsuite (   test) [private]

Definition at line 288 of file suite.py.

00288 
00289 def _isnotsuite(test):
00290     "A crude way to tell apart testcases and suites with duck-typing"
00291     try:
00292         iter(test)
00293     except TypeError:
00294         return True
00295     return False
00296 

Here is the caller graph for this function:


Variable Documentation

Definition at line 8 of file suite.py.