def test_vsa_volume_delete_nonavail_volume(self):
        volume_param = self._default_volume_param()
        volume_ref = self.volume_api.create(self.context, **volume_param)

        self.volume_api.update(self.context,
                            volume_ref['id'], {'status': 'in-use'})
        self.assertRaises(exception.ApiError,
                            self.volume_api.delete,
                            self.context, volume_ref['id'])
If the volume for a dataset is attached to the node but the filesystem
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/test_vsa_volumes.py/VsaVolumesTestCase.test_vsa_volume_delete_nonavail_volume--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/test/test_blockdevice.py/BlockDeviceDeployerMountCalculateChangesTests.test_mount_manifestation