Back to index

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

List of all members.

Public Member Functions

def __init__
def sendall
def close
def makefile

Public Attributes

 pipe_trigger
 text
 fileclass
 data

Detailed Description

Definition at line 39 of file test_httplib.py.


Constructor & Destructor Documentation

def test.test_httplib.EPipeSocket.__init__ (   self,
  text,
  pipe_trigger 
)

Reimplemented from test.test_httplib.FakeSocket.

Definition at line 41 of file test_httplib.py.

00041 
00042     def __init__(self, text, pipe_trigger):
00043         # When sendall() is called with pipe_trigger, raise EPIPE.
00044         FakeSocket.__init__(self, text)
00045         self.pipe_trigger = pipe_trigger

Here is the caller graph for this function:


Member Function Documentation

Definition at line 51 of file test_httplib.py.

00051 
00052     def close(self):
00053         pass

Here is the caller graph for this function:

def test.test_httplib.FakeSocket.makefile (   self,
  mode,
  bufsize = None 
) [inherited]

Definition at line 34 of file test_httplib.py.

00034 
00035     def makefile(self, mode, bufsize=None):
00036         if mode != 'r' and mode != 'rb':
00037             raise client.UnimplementedFileMode()
00038         return self.fileclass(self.text)

def test.test_httplib.EPipeSocket.sendall (   self,
  data 
)

Reimplemented from test.test_httplib.FakeSocket.

Definition at line 46 of file test_httplib.py.

00046 
00047     def sendall(self, data):
00048         if self.pipe_trigger in data:
00049             raise socket.error(errno.EPIPE, "gotcha")
00050         self.data += data


Member Data Documentation

Definition at line 29 of file test_httplib.py.

Definition at line 28 of file test_httplib.py.

Definition at line 44 of file test_httplib.py.

Definition at line 27 of file test_httplib.py.


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