

def _make_request(self, url, body=None):
    req = webob.Request.blank(url)
    if body:
        req.method = 'POST'
        req.body = encodeutils.safe_encode(self._encode_body(body))
    req.content_type = self.content_type
    req.headers['Accept'] = self.content_type
    res = req.get_response(fakes.wsgi_app(init_only=('servers',)))
    return res

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/api/openstack/compute/test_neutron_security_groups.py TestNeutronSecurityGroupsOutputTest._make_request/original