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

List of all members.

Public Member Functions

def __init__
def read
def readinto

Public Attributes


Detailed Description

Definition at line 172 of file

Constructor & Destructor Documentation

def test.test_io.MockFileIO.__init__ (   self,

Definition at line 174 of file

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 (   self,
  n = None 

Definition at line 178 of file

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,

Definition at line 183 of file

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

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