* adapted unittest to new block device object

This commit is contained in:
lars 2009-06-16 02:19:06 +00:00
parent 8e9f5eedc2
commit a6aaba642e

View file

@ -51,7 +51,8 @@ class CoreBlockDevice(CommonTestClass):
blockdevice_found = False
for sys_dir, dev_node, parent, major_minor in COMMON_DEV_INFOS:
if os.path.isdir(sys_dir):
self.assertTrue(func(dev_node).devnum == major_minor)
self.assertTrue(func(dev_node).major == major_minor[0])
self.assertTrue(func(dev_node).minor == major_minor[1])
blockdevice_found = True
# we assume, that we found at least one blockdevice
self.assertTrue(blockdevice_found)