Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.mock_socket.MockFile Class Reference

List of all members.

Public Member Functions

def __init__
def readline
def close

Public Attributes

 lines

Detailed Description

Mock file object returned by MockSocket.makefile().

Definition at line 19 of file mock_socket.py.


Constructor & Destructor Documentation

def test.mock_socket.MockFile.__init__ (   self,
  lines 
)

Definition at line 22 of file mock_socket.py.

00022 
00023     def __init__(self, lines):
        self.lines = lines

Here is the caller graph for this function:


Member Function Documentation

Definition at line 26 of file mock_socket.py.

00026 
00027     def close(self):
00028         pass
00029 

Here is the caller graph for this function:

Definition at line 24 of file mock_socket.py.

00024 
00025     def readline(self):
        return self.lines.pop(0) + b'\r\n'

Here is the caller graph for this function:


Member Data Documentation

Definition at line 23 of file mock_socket.py.


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