def test_json_view_error():
    response = decorators.json_view.error({'msg': 'error'})
    assert isinstance(response, http.HttpResponseBadRequest)
    assert response.content == '{"msg": "error"}'
    assert response['Content-Type'] == 'application/json'
Returns a compiled theano function to compute a representation
dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/tests/test_decorators.py/test_json_view_error--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/pca.py/SparsePCA.function