'Helper to build an os-unmanage req for the specified snapshot_id.'

def _get_resp(self, snapshot_id):

    req = webob.Request.blank(('/v2/%s/snapshots/%s/action' % (fake.PROJECT_ID, snapshot_id)))
    req.method = 'POST'
    req.headers['Content-Type'] = 'application/json'
    req.environ['cinder.context'] = context.RequestContext(fake.USER_ID, fake.PROJECT_ID, True)
    body = {'os-unmanage': ''}
    req.body = jsonutils.dump_as_bytes(body)
    res = req.get_response(app())
    return res
