in doubles/method_double.py [0:0]
def __init__(self, method_name, target):
"""
:param str method_name: The name of the method to double.
:param Target target: A ``Target`` object containing the object with the method to double.
"""
self._method_name = method_name
self._target = target
self._verify_method()
self._allowances = []
self._expectations = []
self._proxy_method = ProxyMethod(
target,
method_name,
lambda args, kwargs: self._find_matching_double(args, kwargs)
)