def test_render_to_response(self):
        mixin = JSONResponseMixin()
        response = mixin.render_to_response(context={'something': 123})
        self.assertEqual(response.content, '{\n    "something": 123\n}')
        self.assertEqual(response['Content-Type'], 'application/json')
Ensure all functions and conditionals end in return statements
dataset/ETHPy150Open ofa/connect/open_connect/connect_core/tests/test_utils_views.py/JSONResponseMixinTest.test_render_to_response--crossover with--dataset/ETHPy150Open bryancatanzaro/copperhead/copperhead/compiler/passes.py/return_check