Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes
test.test_shutil.TestCopyFile.Faux Class Reference
Inheritance diagram for test.test_shutil.TestCopyFile.Faux:
Inheritance graph
[legend]
Collaboration diagram for test.test_shutil.TestCopyFile.Faux:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def read
def __enter__
def __exit__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Private Attributes

 _raise_in_exit
 _suppress_at_exit

Static Private Attributes

 _entered = False
 _exited_with = None
 _raised = False

Detailed Description

Definition at line 855 of file test_shutil.py.


Constructor & Destructor Documentation

def test.test_shutil.TestCopyFile.Faux.__init__ (   self,
  raise_in_exit = False,
  suppress_at_exit = True 
)

Definition at line 859 of file test_shutil.py.

00859 
00860         def __init__(self, raise_in_exit=False, suppress_at_exit=True):
00861             self._raise_in_exit = raise_in_exit
            self._suppress_at_exit = suppress_at_exit

Here is the caller graph for this function:


Member Function Documentation

Definition at line 864 of file test_shutil.py.

00864 
00865         def __enter__(self):
            self._entered = True
def test.test_shutil.TestCopyFile.Faux.__exit__ (   self,
  exc_type,
  exc_val,
  exc_tb 
)

Definition at line 866 of file test_shutil.py.

00866 
00867         def __exit__(self, exc_type, exc_val, exc_tb):
00868             self._exited_with = exc_type, exc_val, exc_tb
00869             if self._raise_in_exit:
00870                 self._raised = True
00871                 raise IOError("Cannot close")
00872             return self._suppress_at_exit
00873 
    def tearDown(self):

Here is the caller graph for this function:

def test.test_shutil.TestCopyFile.Faux.read (   self,
  args 
)

Definition at line 862 of file test_shutil.py.

00862 
00863         def read(self, *args):
            return ''

Here is the caller graph for this function:


Member Data Documentation

Definition at line 856 of file test_shutil.py.

Definition at line 857 of file test_shutil.py.

Definition at line 860 of file test_shutil.py.

test.test_shutil.TestCopyFile.Faux._raised = False [static, private]

Definition at line 858 of file test_shutil.py.

Definition at line 861 of file test_shutil.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: