def CreateRpcRunnerMock():
  ret = mock.MagicMock(spec=rpc.RpcRunner)
  ret.call_hooks_runner.side_effect = MockHooksExecutionFn
  return ret
Creates a new L{mock.MagicMock} tailored for L{rpc.RpcRunner}
dataset/ETHPy150Open ganeti/ganeti/test/py/cmdlib/testsupport/rpc_runner_mock.py/CreateRpcRunnerMock