in doubles/proxy_method.py [0:0]
def __call__(self, *args, **kwargs):
"""The actual invocation of the doubled method.
:param tuple args: The arguments the doubled method was called with.
:param dict kwargs: The keyword arguments the doubled method was called with.
:return: The return value the doubled method was declared to return.
:rtype: object
:raise: ``UnallowedMethodCallError`` if no matching doubles were found.
"""
expectation = self._find_expectation(args, kwargs)
if not expectation:
self._raise_exception(args, kwargs)
expectation.verify_arguments(args, kwargs)
return expectation.return_value(*args, **kwargs)