class documentation

class _RapiMock(object):

View In Hierarchy

Mocking out the RAPI server parts.

Method __init__ Initialize this class.
Method FetchResponse This is a callback method used to fetch a response.
Instance Variable handler Undocumented
def __init__(self, user_fn, luxi_client, reqauth=False):

Initialize this class.

Parameters
user_fn:callableFunction to authentication username
luxi_clientA LUXI client implementation
reqauthUndocumented
def FetchResponse(self, path, method, headers, request_body):

This is a callback method used to fetch a response.

This method is called by the FakeCurl.perform method

Parameters
path:stringRequested path
method:stringHTTP method
headers:email.message.MessageRequest headers
request_body:stringRequest body
Returns
Tuple containing status code, response headers and response body
handler =

Undocumented