コード例 #1
0
 def test_convert_block_devices(self):
     converted = driver_block_device._convert_block_devices(
         self.driver_classes['volume'],
         [self.volume_bdm, self.ephemeral_bdm])
     self.assertEqual(converted, [self.volume_driver_bdm])
コード例 #2
0
 def test_convert_block_devices(self):
     bdms = objects.BlockDeviceMappingList(
         objects=[self.volume_bdm, self.ephemeral_bdm])
     converted = driver_block_device._convert_block_devices(
         self.driver_classes['volume'], bdms)
     self.assertEqual(converted, [self.volume_driver_bdm])
コード例 #3
0
 def test_convert_block_devices(self):
     converted = driver_block_device._convert_block_devices(
         self.driver_classes['volume'],
         [self.volume_bdm, self.ephemeral_bdm])
     self.assertEqual(converted, [self.volume_driver_bdm])
コード例 #4
0
ファイル: test_block_device.py プロジェクト: 4everming/nova
 def test_convert_block_devices(self):
     bdms = objects.BlockDeviceMappingList(
             objects=[self.volume_bdm, self.ephemeral_bdm])
     converted = driver_block_device._convert_block_devices(
         self.driver_classes['volume'], bdms)
     self.assertEqual(converted, [self.volume_driver_bdm])