'Test volume can be forced to delete.'

def test_force_delete_volume(self):

    self.volume_params['status'] = 'error_deleting'
    volume = tests_utils.create_volume(self.context, **self.volume_params)
    self.assertRaises(exception.InvalidVolume, self.volume_api.delete, self.context, volume)
    self.volume_api.delete(self.context, volume, force=True)
    volume = objects.Volume.get_by_id(context.get_admin_context(), volume.id)
    self.assertEqual('deleting', volume.status)
    self.volume.delete_volume(self.context, volume)
