def test_contenttype_json_no_debug(webapp):
    try:
        f = urlopen("%s/test_contenttype_json_no_debug" %
                    webapp.server.http.base)
    except __HOLE__ as e:
        assert "json" in e.headers.get("Content-Type")
        result = json.loads(e.read().decode("utf-8"))
        assert result["code"] == 500
        assert result["name"] == "Internal Server Error"
        assert result["description"] == ""
        assert "traceback" not in result
    else:
        assert False
dataset/ETHPy150Open circuits/circuits/tests/web/test_exceptions.py/test_contenttype_json_no_debug