

def test_format(self):
    req = MagicMock()
    resp = MagicMock()
    resp.body = {
        'example': 'JSON',
    }
    req.content_type = None
    hook_format(req, resp)
    resp.body = '{"example": "JSON"}'
    resp.content_type = 'application/json'

dataset/ETHPy150Open softlayer/jumpgate/tests/jumpgate-tests/common/hooks/test_hooks.py TestHookFormat.test_format/VarMisuse@35/43 `resp`->`req`