

@patch('jumpgate.common.hooks.log.LOG')
def test_log_response(self, log):
    req = MagicMock()
    resp.method = 'GET'
    req.path = '/'
    req.query_string = 'something=value'
    req.env = {
        'REQUEST_ID': '123456',
    }
    resp = MagicMock()
    resp.status = '200 OK'
    log_response(req, resp)
    log.info.assert_called_with('RESP: %s %s %s %s [ReqId: %s]', 'GET', '/', 'something=value', '200 OK', '123456')

dataset/ETHPy150Open softlayer/jumpgate/tests/jumpgate-tests/common/hooks/test_hooks.py TestHookLogResponse.test_log_response/VarMisuse@24/40 `req`->`resp`