def __init__(self, method_name, call_queue, replay_mode):
    """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_name: str
      call_queue: list or deque
      replay_mode: bool
    """

    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._params = None
    self._named_params = None
    self._return_value = None
    self._exception = None
    self._side_effects = 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_name: str
      call_queue: list or deque
      replay_mode: bool
    
deps/protobuf/python/mox.py