def testMountpoint2(self): devicexml=parseXMLString("""<disk name="/dev/mapper/mobilix--20-lv_tmp"/>""") mountpointxml=parseXMLString("""<mountpoint name="/tmp2"/>""") mountpoint=MountPoint(mountpointxml.documentElement, mountpointxml) device=Device(devicexml.documentElement, devicexml, mountsfile=self.mountsfilename) self.assertFalse(device.isMounted(mountpoint))
def testScanMountpoint2(self): devicexml=parseXMLString("""<disk name="/dev/mapper/mobilix--20-lv_tmp2"/>""") device=Device(devicexml.documentElement, devicexml, mountsfile=self.mountsfilename) self.assertEquals(device.scanMountPoint(), [None, None])
def testDevice2(self): devicexml=parseXMLString("""<disk name="/dev/mapper/mobilix--20-lv_tmp2"/>""") device=Device(devicexml.documentElement, devicexml, mountsfile=self.mountsfilename) self.assertFalse(device.isMounted())