summaryrefslogtreecommitdiff
path: root/test/dbus/lvmdbustest.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/dbus/lvmdbustest.py')
-rwxr-xr-xtest/dbus/lvmdbustest.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
index 7a2c44f0d..819d09660 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -337,8 +337,16 @@ class TestDbusService(unittest.TestCase):
if len(h_lv.HiddenLvs) > 0:
self._verify_hidden_lookups(h_lv, vgname)
- # print("Hidden check %s %s" % (h, h_lv.Name))
full_name = "%s/%s" % (vgname, h_lv.Name)
+ # print("Hidden check %s" % (full_name))
+ lookup_path = mgr.LookUpByLvmId(full_name)
+ self.assertTrue(lookup_path != '/')
+ self.assertTrue(lookup_path == h_lv.object_path)
+
+ # Lets's strip off the '[ ]' and make sure we can find
+ full_name = "%s/%s" % (vgname, h_lv.Name[1:-1])
+ # print("Hidden check %s" % (full_name))
+
lookup_path = mgr.LookUpByLvmId(full_name)
self.assertTrue(lookup_path != '/')
self.assertTrue(lookup_path == h_lv.object_path)