* adapted unittest to new block device object
This commit is contained in:
parent
8e9f5eedc2
commit
a6aaba642e
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue