def patchRpc(module_under_test):
  return patchModule(module_under_test, "rpc", wraps=rpc)
Patches the L{ganeti.rpc} module for tests.
dataset/ETHPy150Open ganeti/ganeti/test/py/cmdlib/testsupport/rpc_runner_mock.py/patchRpc