

def test_respond(self):
    response = self.request('/nojsonp-response')
    self.assertEqual(response.headers['Content-Type'], 'application/json; charset=UTF-8')
    self.assertEqual(response.body, b'{"hello": "world"}')
    response = self.request('/nojsonp-response?callback=foo')
    self.assertEqual(response.headers['Content-Type'], 'application/json; charset=UTF-8')
    response.assertEqual(response.body, b'{"hello": "world"}')
    response = self.request('/nojsonp-response?callback=!!!')
    self.assertEqual(response.headers['Content-Type'], 'application/json; charset=UTF-8')
    self.assertEqual(response.body, b'{"hello": "world"}')

dataset/ETHPy150Open dailymuse/oz/oz/json_api/tests/test_middleware.py NoJSONPApiMiddlewareTestCase.test_respond/VarMisuse@67/126 `self`->`response`