Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
distutils.tests.test_upload.FakeConnection Class Reference
Inheritance diagram for distutils.tests.test_upload.FakeConnection:
Inheritance graph
[legend]
Collaboration diagram for distutils.tests.test_upload.FakeConnection:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __call__
def connect
def putrequest
def putheader
def send
def getresponse

Public Attributes

 requests
 headers
 body
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Static Public Attributes

 endheaders = connect

Detailed Description

Definition at line 45 of file test_upload.py.


Constructor & Destructor Documentation

Definition at line 47 of file test_upload.py.

00047 
00048     def __init__(self):
00049         self.requests = []
00050         self.headers = []
00051         self.body = ''

Here is the caller graph for this function:


Member Function Documentation

Definition at line 52 of file test_upload.py.

00052 
00053     def __call__(self, netloc):
00054         return self

Definition at line 55 of file test_upload.py.

00055 
00056     def connect(self):
        pass

Here is the caller graph for this function:

Definition at line 68 of file test_upload.py.

00068 
00069     def getresponse(self):
00070         return Response()

Here is the caller graph for this function:

def distutils.tests.test_upload.FakeConnection.putheader (   self,
  name,
  value 
)

Definition at line 62 of file test_upload.py.

00062 
00063     def putheader(self, name, value):
00064         self.headers.append((name, value))

Here is the caller graph for this function:

def distutils.tests.test_upload.FakeConnection.putrequest (   self,
  method,
  url 
)

Definition at line 59 of file test_upload.py.

00059 
00060     def putrequest(self, method, url):
00061         self.requests.append((method, url))

Here is the caller graph for this function:

Definition at line 65 of file test_upload.py.

00065 
00066     def send(self, body):
00067         self.body = body

Here is the caller graph for this function:


Member Data Documentation

Definition at line 50 of file test_upload.py.

Definition at line 57 of file test_upload.py.

Definition at line 49 of file test_upload.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

Definition at line 48 of file test_upload.py.


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