Back to index

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

List of all members.

Public Member Functions

def __init__
def read
def readinto

Public Attributes

 read_history

Detailed Description

Definition at line 172 of file test_io.py.


Constructor & Destructor Documentation

def test.test_io.MockFileIO.__init__ (   self,
  data 
)

Definition at line 174 of file test_io.py.

00174 
00175     def __init__(self, data):
00176         self.read_history = []
00177         super().__init__(data)

Here is the caller graph for this function:


Member Function Documentation

def test.test_io.MockFileIO.read (   self,
  n = None 
)

Definition at line 178 of file test_io.py.

00178 
00179     def read(self, n=None):
00180         res = super().read(n)
00181         self.read_history.append(None if res is None else len(res))
00182         return res

Here is the caller graph for this function:

def test.test_io.MockFileIO.readinto (   self,
  b 
)

Definition at line 183 of file test_io.py.

00183 
00184     def readinto(self, b):
00185         res = super().readinto(b)
00186         self.read_history.append(res)
00187         return res


Member Data Documentation

Definition at line 175 of file test_io.py.


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