Back to index

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

List of all members.

Public Member Functions

def __init__

Public Attributes

 expected
 failureException
 obj_name
 expected_regex
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 104 of file case.py.


Constructor & Destructor Documentation

def unittest.case._AssertRaisesBaseContext.__init__ (   self,
  expected,
  test_case,
  callable_obj = None,
  expected_regex = None 
)

Definition at line 107 of file case.py.

00107 
00108                   expected_regex=None):
00109         self.expected = expected
00110         self.failureException = test_case.failureException
00111         if callable_obj is not None:
00112             try:
00113                 self.obj_name = callable_obj.__name__
00114             except AttributeError:
00115                 self.obj_name = str(callable_obj)
00116         else:
00117             self.obj_name = None
00118         if isinstance(expected_regex, (bytes, str)):
00119             expected_regex = re.compile(expected_regex)
00120         self.expected_regex = expected_regex
00121 

Here is the caller graph for this function:


Member Data Documentation

Definition at line 108 of file case.py.

Definition at line 119 of file case.py.

Definition at line 109 of file case.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

Definition at line 112 of file case.py.


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