def test_next_size_limit(self, cursize): conf = drive_config(format='cow', diskType=DISK_TYPE.BLOCK) drive = Drive(self.log, **conf) self.assertEqual(drive.getNextVolumeSize(cursize, self.CAPACITY), drive.getMaxVolumeSize(self.CAPACITY))
def test_next_size(self, cursize): conf = drive_config(format='cow', diskType=DISK_TYPE.BLOCK) drive = Drive(self.log, **conf) self.assertEqual(drive.getNextVolumeSize(cursize, self.CAPACITY), cursize + drive.volExtensionChunk)