test/py/cmdlib/testsupport/iallocator_mock.py \
test/py/cmdlib/testsupport/lock_manager_mock.py \
test/py/cmdlib/testsupport/netutils_mock.py \
+ test/py/cmdlib/testsupport/pathutils_mock.py \
test/py/cmdlib/testsupport/processor_mock.py \
test/py/cmdlib/testsupport/rpc_runner_mock.py \
test/py/cmdlib/testsupport/ssh_mock.py \
from cmdlib.testsupport.lock_manager_mock import LockManagerMock
from cmdlib.testsupport.netutils_mock import patchNetutils, HostnameMock
from cmdlib.testsupport.processor_mock import ProcessorMock
+from cmdlib.testsupport.pathutils_mock import patchPathutils
from cmdlib.testsupport.rpc_runner_mock import CreateRpcRunnerMock, \
RpcResultsBuilder
from cmdlib.testsupport.ssh_mock import patchSsh
"patchUtils",
"patchNetutils",
"patchSsh",
+ "patchPathutils",
"LockManagerMock",
"ProcessorMock",
"RpcResultsBuilder",
#
#
-# Copyright (C) 2013 Google Inc.
+# Copyright (C) 2015 Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# pylint: disable=C0103
-def patchSsh(module_under_test):
- """Patches the L{ganeti.ssh} module for tests.
+def patchPathutils(module_under_test):
+ """Patches the L{ganeti.pathutils} module for tests.
This function is meant to be used as a decorator for test methods.
"ganeti.cmdlib" prefix is optional.
"""
- return patchModule(module_under_test, "ssh")
+ return patchModule(module_under_test, "pathutils")