def setUp(self): RequiresDevice.setUp(self) align1 = _ped.Alignment(10, 5) align2 = _ped.Alignment(10, 5) geom1 = _ped.Geometry(self._device, 0, 50) geom2 = _ped.Geometry(self._device, 25, 50) self.c = _ped.Constraint(align1, align2, geom1, geom2, min_size=10, max_size=100)
def setUp(self): RequiresDevice.setUp(self) align1 = parted.Alignment(offset=10, grainSize=5) align2 = parted.Alignment(offset=10, grainSize=5) geom1 = parted.Geometry(device=self.device, start=0, length=50) geom2 = parted.Geometry(device=self.device, start=25, length=50) self.c = parted.Constraint(startAlign=align1, endAlign=align2, startRange=geom1, endRange=geom2, minSize=10, maxSize=100)
def setUp(self): RequiresDevice.setUp(self) pr = "%f" % (47.0 / self._device.unit_get_size(_ped.UNIT_PERCENT),) self.pairs = [(_ped.UNIT_SECTOR, '0s',), (_ped.UNIT_BYTE, '47B',), (_ped.UNIT_KILOBYTE, '0.05kB',), (_ped.UNIT_MEGABYTE, '0.00MB',), (_ped.UNIT_GIGABYTE, '0.00GB',), (_ped.UNIT_TERABYTE, '0.00TB',), (_ped.UNIT_COMPACT, '47.0B',), (_ped.UNIT_CYLINDER, '0cyl',), (_ped.UNIT_CHS, '0,0,0',), (_ped.UNIT_PERCENT, pr[:4] + "%",), (_ped.UNIT_KIBIBYTE, '0.05kiB',), (_ped.UNIT_MEBIBYTE, '0.00MiB',), (_ped.UNIT_GIBIBYTE, '0.00GiB',), (_ped.UNIT_TEBIBYTE, '0.00TiB',)]
def setUp(self): RequiresDevice.setUp(self) sector_size = self._device.sector_size size = self._device.unit_get_size(_ped.UNIT_PERCENT) pr = "%f" % ((47.0 * sector_size) / size,) self.pairs = [(_ped.UNIT_SECTOR, '47s',), (_ped.UNIT_BYTE, '24064B',), (_ped.UNIT_KILOBYTE, '24.1kB',), (_ped.UNIT_MEGABYTE, '0.02MB',), (_ped.UNIT_GIGABYTE, '0.00GB',), (_ped.UNIT_TERABYTE, '0.00TB',), (_ped.UNIT_COMPACT, '24.1kB',), (_ped.UNIT_CYLINDER, '0cyl',), (_ped.UNIT_CHS, '0,1,15',), (_ped.UNIT_PERCENT, pr[:4] + "%",), (_ped.UNIT_KIBIBYTE, '23.5kiB',), (_ped.UNIT_MEBIBYTE, '0.02MiB',), (_ped.UNIT_GIBIBYTE, '0.00GiB',), (_ped.UNIT_TEBIBYTE, '0.00TiB',)]
def setUp(self): RequiresDevice.setUp(self) self.g = _ped.Geometry(self._device, start=10, length=100)
def setUp(self): RequiresDevice.setUp(self) self.geom = parted.Geometry(self.device, start=10, length=100)
def setUp(self): RequiresDevice.setUp(self) self.g = parted.Geometry(device=self.device, start=0, length=100) self.a = parted.Alignment(offset=10, grainSize=0)
def setUp(self): RequiresDevice.setUp(self) self.g1 = _ped.Geometry(self._device, start=0, length=100) self.g2 = _ped.Geometry(self._device, start=0, length=100) self.i = None
def setUp(self): RequiresDevice.setUp(self) self.c1 = self._device.get_constraint() self.g1 = _ped.Geometry(self._device, 1, 8)
def setUp(self): RequiresDevice.setUp(self) self.c1 = self._device.get_constraint()
def setUp(self): RequiresDevice.setUp(self) self.g = _ped.Geometry(self._device, start=0, length=100) self.dup = self.g.duplicate()
def setUp(self): RequiresDevice.setUp(self) self.g = _ped.Geometry(self._device, start=0, length=100) self.a = _ped.Alignment(10, 0)