* fixed network unittests

* disabled unfinished blockdevice test
This commit is contained in:
age 2008-02-18 11:01:44 +00:00
parent eaf37a872a
commit 35bed3b4e6
3 changed files with 14 additions and 3 deletions

View file

@ -48,13 +48,14 @@ class CoreBlockDevice(CommonTestClass):
"""
get_device = lambda devname: blockdevice.get_blockdevice(devname)
func = lambda parent, child: get_device(parent).is_parent_of(get_device(child))
func_raw = lambda parent: get_device(parent).is_parent_of
# TODO:
#func_raw = lambda parent: get_device(parent).is_parent_of
self.assertTrue(func(self.blockdevice, self.device))
self.assertFalse(func(self.blockdevice, self.blockdevice))
self.assertFalse(func(self.device, self.blockdevice))
self.assertFalse(func(self.device, self.device))
self.assertFalse(func(self.blockdevice, "/dev/hde1"))
self.assertFalse(func("ram0", "ram1"))
self.assertFalse(func_raw(self.blockdevice), None))
#self.assertFalse(func_raw(self.blockdevice) None))
self.assertRaises(CBInternalError, func_raw(self.blockdevice), "")