示例#1
0
 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))
示例#2
0
 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)
示例#3
0
 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)
示例#4
0
 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))