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)
        )
def __init__ ( self , method_name , target ) : 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 ) )
: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.