def test_single_lv(self):
'''LVM: Single LV, no RAID'''
- self.sync()
objs_old = set(self.manager_iface.EnumerateDevices())
self.assertEqual(subprocess.call(['lvcreate', '-n', 'udtestlv1', '-L',
# there should be exactly one new device for the LV
objs_new = set(self.manager_iface.EnumerateDevices())
- self.assertEqual(len(objs_old) + 1, len(objs_new), objs_new - objs_old)
+ self.assertEqual(len(objs_old) + 1, len(objs_new))
lvname = list(objs_new - objs_old)[0]
lv_props = dbus.Interface(dbus.SystemBus().get_object(
def test_single_lv_raid(self):
'''LVM: Single LV, RAID-1'''
- self.sync()
objs_old = set(self.manager_iface.EnumerateDevices())
self.assertEqual(subprocess.call(['lvcreate', '-n', 'udtestlvr1', '-L',