Exemple #1
0
 def test_max_size(self):
     conf = drive_config(format='cow')
     drive = Drive({}, self.log, **conf)
     size = utils.round(self.CAPACITY * drive.VOLWM_COW_OVERHEAD,
                        constants.MEGAB)
     self.assertEqual(drive.getMaxVolumeSize(self.CAPACITY), size)
Exemple #2
0
 def test_max_size(self):
     conf = drive_config(format='cow')
     drive = Drive({}, self.log, **conf)
     size = utils.round(self.CAPACITY * drive.VOLWM_COW_OVERHEAD,
                        constants.MEGAB)
     self.assertEqual(drive.getMaxVolumeSize(self.CAPACITY), size)
Exemple #3
0
 def test_next_size_limit(self, cursize):
     conf = drive_config(format='cow')
     drive = Drive({}, self.log, **conf)
     self.assertEqual(drive.getNextVolumeSize(cursize, self.CAPACITY),
                      drive.getMaxVolumeSize(self.CAPACITY))
Exemple #4
0
 def test_next_size_limit(self, cursize):
     conf = drive_config(format='cow')
     drive = Drive({}, self.log, **conf)
     self.assertEqual(drive.getNextVolumeSize(cursize, self.CAPACITY),
                      drive.getMaxVolumeSize(self.CAPACITY))