def test_forbidden(webapp):
    try:
        urlopen("%s/test_forbidden" % webapp.server.http.base)
    except HTTPError as e:
        assert e.code == 403
        assert e.msg == "Forbidden"
    else:
        assert False
dataset/ETHPy150Open circuits/circuits/tests/web/test_wsgi_application.py/test_forbidden/original