'Test delete volume moves on if the volume does not exist.'

@mock.patch.object(db.sqlalchemy.api, 'volume_get', side_effect=exception.VolumeNotFound(volume_id='12345678-1234-5678-1234-567812345678'))
def test_delete_volume_not_found(self, mock_get_volume):

    volume_id = '12345678-1234-5678-1234-567812345678'
    volume = objects.Volume(self.context, status='available', id=volume_id)
    self.volume.delete_volume(self.context, volume)
    self.assertTrue(mock_get_volume.called)
