/tests/web/test_null_response.py
https://bitbucket.org/prologic/circuits/ · Python · 19 lines · 13 code · 6 blank · 0 comment · 3 complexity · b797310ea709383cd7cf53233c667e9b MD5 · raw file
- from circuits.web import Controller
- from .helpers import urlopen, HTTPError
- class Root(Controller):
- def index(self):
- pass
- def test(webapp):
- try:
- urlopen(webapp.server.http.base)
- except HTTPError as e:
- assert e.code == 404
- assert e.msg == "Not Found"
- else:
- assert False