'Test create volume from image via full copy.
Verify that after copying image to volume, it is in available
state and is bootable.'

@mock.patch('cinder.image.image_utils.qemu_img_info')
def test_create_volume_from_image_not_cloned_status_available(self, mock_qemu_info):

    image_info = imageutils.QemuImgInfo()
    image_info.virtual_size = '1073741824'
    mock_qemu_info.return_value = image_info
    volume = self._create_volume_from_image(fakeout_clone_image=True)
    self.assertEqual('available', volume['status'])
    self.assertTrue(volume['bootable'])
    self.volume.delete_volume(self.context, volume)
