def test_json_view_normal_response():
    expected = http.HttpResponseForbidden()

    def func(request):
        return expected

    response = decorators.json_view(func)(mock.Mock())
    assert expected is response
    assert response['Content-Type'] == 'text/html; charset=utf-8'
Generates an unique hash for the effect. The effect hash is based
dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/tests/test_decorators.py/test_json_view_normal_response--crossover with--dataset/ETHPy150Open tobspr/RenderPipeline/rpcore/effect.py/Effect._generate_hash