l.b.t.e.UrlLib2TransportTestHandler(BaseHandler) : class documentation

Part of lp.bugs.tests.externalbugtracker View In Hierarchy

A test urllib2 handler returning a hard-coded response.
Method __init__ Undocumented
Method setRedirect The next call of default_open() will redirect to url.
Method setError Raise error when url is accessed.
Method setResponse Undocumented
Method default_open Catch all requests and return a hard-coded response.
def __init__(self):
Undocumented
def setRedirect(self, new_url):
The next call of default_open() will redirect to url.
def setError(self, error, url):
Raise error when url is accessed.
def setResponse(self, response):
Undocumented
def default_open(self, req):
Catch all requests and return a hard-coded response.

The response body is an XMLRPC response. In addition we set the info of the response to contain a cookie.

API Documentation for Launchpad, generated by pydoctor at 2018-06-26 00:00:09.