def __init__(self, method_name, call_queue, replay_mode,
               method_to_mock=None, description=None):
    """Construct a new mock method.

    Args:
      # method_name: the name of the method
      # call_queue: deque of calls, verify this call against the head, or add
      #     this call to the queue.
      # replay_mode: False if we are recording, True if we are verifying calls
      #     against the call queue.
      # method_to_mock: The actual method being mocked, used for introspection.
      # description: optionally, a descriptive name for this method. Typically
      #     this is equal to the descriptive name of the method's class.
      method_name: str
      call_queue: list or deque
      replay_mode: bool
      method_to_mock: a method object
      description: str or None
    """

    self._name = method_name
    self.__name__ = method_name
    self._call_queue = call_queue
    if not isinstance(call_queue, deque):
      self._call_queue = deque(self._call_queue)
    self._replay_mode = replay_mode
    self._description = description

    self._params = None
    self._named_params = None
    self._return_value = None
    self._exception = None
    self._side_effects = None

    try:
      self._checker = MethodCallChecker(method_to_mock)
    except __HOLE__:
      self._checker = None
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/mox/mox.py/MockMethod.__init__