]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: remove ceph-disk dead code
authorLoic Dachary <ldachary@redhat.com>
Sat, 2 Jan 2016 16:49:24 +0000 (17:49 +0100)
committerLoic Dachary <ldachary@redhat.com>
Thu, 4 Feb 2016 07:38:08 +0000 (14:38 +0700)
Signed-off-by: Loic Dachary <loic@dachary.org>
src/ceph-disk/tests/test_main.py

index af02fa4ad705b982b8de106f5ce39ba1ebfe91df..2982e22125ed11627f238f2b49ccc69a1291dcdd 100644 (file)
@@ -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