Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_with.MockNested Class Reference
Inheritance diagram for test.test_with.MockNested:
Inheritance graph
[legend]
Collaboration diagram for test.test_with.MockNested:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __enter__
def __exit__

Public Attributes

 enter_called
 exit_called
 exit_args
 managers
 entered
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 92 of file test_with.py.


Constructor & Destructor Documentation

def test.test_with.MockNested.__init__ (   self,
  managers 
)

Reimplemented from test.test_with.Nested.

Definition at line 93 of file test_with.py.

00093 
00094     def __init__(self, *managers):
00095         Nested.__init__(self, *managers)
00096         self.enter_called = False
00097         self.exit_called = False
00098         self.exit_args = None

Here is the caller graph for this function:


Member Function Documentation

Reimplemented from test.test_with.Nested.

Definition at line 99 of file test_with.py.

00099 
00100     def __enter__(self):
00101         self.enter_called = True
00102         return Nested.__enter__(self)

def test.test_with.MockNested.__exit__ (   self,
  exc_info 
)

Reimplemented from test.test_with.Nested.

Definition at line 103 of file test_with.py.

00103 
00104     def __exit__(self, *exc_info):
00105         self.exit_called = True
00106         self.exit_args = exc_info
00107         return Nested.__exit__(self, *exc_info)
00108 


Member Data Documentation

Definition at line 95 of file test_with.py.

Definition at line 60 of file test_with.py.

Definition at line 97 of file test_with.py.

Definition at line 96 of file test_with.py.

Definition at line 59 of file test_with.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: