l.a.t.t.FakeMethodCallLog(FakeMethod) : class documentation

Part of lp.archivepublisher.tests.test_signing View In Hierarchy

Fake execution general commands.
Method __init__ Set up a fake function or method.
Method __call__ Catch an invocation to the method.
Method caller_count Undocumented
Method caller_list Undocumented

Inherited from FakeMethod:

Method call_count Undocumented
Method extract_args Return just the calls' positional-arguments tuples.
Method extract_kwargs Return just the calls' keyword-arguments dicts.
def __init__(self, *args, upload=None, **kwargs):
Set up a fake function or method.
ParametersresultValue to return.
failureException to raise.
def __call__(self, *args, **kwargs):
Catch an invocation to the method.

Increment call_count, and adds the arguments to calls.

Accepts any and all parameters. Raises the failure passed to the constructor, if any; otherwise, returns the result value passed to the constructor.

def caller_count(self, caller):
Undocumented
def caller_list(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.