'Test volume can be deleted in error_extending stats.'

def test_delete_volume_in_error_extending(self):

    volume = tests_utils.create_volume(self.context, **self.volume_params)
    self.volume.create_volume(self.context, volume)
    db.volume_update(self.context, volume['id'], {'status': 'error_extending'})
    self.volume.delete_volume(self.context, volume)
    self.assertRaises(exception.NotFound, db.volume_get, self.context, volume['id'])
