l.b.t.e.TestBugzillaXMLRPCTransport(RequestsTransport) : class documentation

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

Known subclasses: lp.bugs.tests.externalbugtracker.TestBugzillaAPIXMLRPCTransport

A test implementation of the Bugzilla XML-RPC interface.
Method __init__ Ensure mutable class data is copied to the instance.
Method expireCookie Mark the cookie as expired.
Method auth_cookie Undocumented
Method has_valid_auth_cookie Undocumented
Method request Call the corresponding XML-RPC method.
Method time Return a dict of the local time, UTC time and the timezone.
Method login_required Undocumented
Method login Undocumented
Method get_bugs Return a list of bug dicts for a given set of bug IDs.
Method comments Return comments for a given set of bugs.
Method add_comment Add a comment to a bug.
Method set_link Set the Launchpad bug ID for a given Bugzilla bug.
Method _consumeLoginToken Try to consume a login token.
Method _handleLoginToken A wrapper around _consumeLoginToken().
Method _setAuthCookie Undocumented
Method _copy_comment Undocumented

Inherited from RequestsTransport:

Method setCookie Set a cookie for the transport to use in future connections.
def __init__(self, *args, **kwargs):
Ensure mutable class data is copied to the instance.
def expireCookie(self, cookie):
Mark the cookie as expired.
@property
def auth_cookie(self):
Undocumented
@property
def has_valid_auth_cookie(self):
Undocumented
def request(self, host, handler, request, verbose=None):
Call the corresponding XML-RPC method.

The method name and arguments are extracted from request. The method on this class with the same name as the XML-RPC method is called, with the extracted arguments passed on to it.

def time(self):
Return a dict of the local time, UTC time and the timezone.
def login_required(self):
Undocumented
def _consumeLoginToken(self, token_text):
Try to consume a login token.
def _handleLoginToken(self, token_text):
A wrapper around _consumeLoginToken().

We can override this method when we need to do things Zopelessly.

def login(self, arguments):
Undocumented
def _setAuthCookie(self):
Undocumented
def get_bugs(self, arguments):
Return a list of bug dicts for a given set of bug IDs.
def _copy_comment(self, comment, fields_to_return=None):
Undocumented
def comments(self, arguments):
Return comments for a given set of bugs.
def add_comment(self, arguments):
Add a comment to a bug.
def set_link(self, arguments):
Set the Launchpad bug ID for a given Bugzilla bug.
ReturnsThe current Launchpad bug ID for the Bugzilla bug or 0 if one is not set.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.