def test_contenttype(webapp):
    try:
        urlopen("%s/test_contenttype" % webapp.server.http.base)
    except __HOLE__ as e:
        assert e.code == 500
        assert e.msg == "Internal Server Error"
        assert "text/html" in e.headers.get("Content-Type")
    else:
        assert False
dataset/ETHPy150Open circuits/circuits/tests/web/test_exceptions.py/test_contenttype