

def test_format_request_id(self):
    req = MagicMock()
    req.env = {
        'REQUEST_ID': '123456',
    }
    resp = MagicMock()
    hook_format(req, resp)
    resp.set_header.assert_called_with('X-Compute-Request-Id', '123456')

dataset/ETHPy150Open softlayer/jumpgate/tests/jumpgate-tests/common/hooks/test_hooks.py TestHookFormat.test_format_request_id/original