From: Loic Dachary Date: Sat, 2 Jan 2016 16:49:24 +0000 (+0100) Subject: tests: remove ceph-disk dead code X-Git-Tag: v10.0.4~46^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ca97b67b76949a134c17ffa8a5418f0c1dbfbb06;p=ceph.git tests: remove ceph-disk dead code Signed-off-by: Loic Dachary --- diff --git a/src/ceph-disk/tests/test_main.py b/src/ceph-disk/tests/test_main.py index af02fa4ad705..2982e22125ed 100644 --- a/src/ceph-disk/tests/test_main.py +++ b/src/ceph-disk/tests/test_main.py @@ -1422,16 +1422,3 @@ class TestCephDiskDeactivateAndDestroy(unittest.TestCase): def raise_command_error(*args): e = subprocess.CalledProcessError('aaa', 'bbb', 'ccc') raise e - - -def path_exists(target_paths=None): - """ - A quick helper that enforces a check for the existence of a path. Since we - are dealing with fakes, we allow to pass in a list of paths that are OK to - return True, otherwise return False. - """ - target_paths = target_paths or [] - - def exists(path): - return path in target_paths - return exists