b.p.l.t.InstrumentedXMLRPCConnection(object) : class documentation

Part of bzrlib.plugins.launchpad.test_register View In Hierarchy

Stands in place of an http connection for the purposes of testing
Method __init__ Undocumented
Method getreply Fake the http reply.
Method getresponse Fake the http reply.
Method getfile Return a fake file containing the response content.
def __init__(self, testcase):
Undocumented
def getreply(self):
Fake the http reply.
Returns(errcode, errmsg, headers)
def getresponse(self, buffering=True):
Fake the http reply.

This is used when running on Python 2.7, where xmlrpclib uses httplib.HTTPConnection in a different way than before.

def getfile(self):
Return a fake file containing the response content.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.