in doubles/proxy_method.py [0:0]
def __init__(self, target, method_name, find_expectation):
"""
:param Target target: The object to be hijacked.
:param str method_name: The name of the method to replace.
:param function find_expectation: A function to call to look for expectations that match
any provided arguments.
"""
self._target = target
self._method_name = method_name
self._find_expectation = find_expectation
self._attr = target.get_attr(method_name)
self._capture_original_method()
self._hijack_target()