Changeset 899
- Timestamp:
- 12/30/05 00:19:00
- Files:
-
- trunk/cherrypy/lib/httptools.py (modified) (1 diff)
- trunk/cherrypy/test/test_tutorials.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/lib/httptools.py
r894 r899 9 9 from BaseHTTPServer import BaseHTTPRequestHandler 10 10 responseCodes = BaseHTTPRequestHandler.responses.copy() 11 12 # From http://www.cherrypy.org/ticket/361 13 responseCodes[500] = ('Internal error', 14 'The server encountered an unexpected condition ' 15 'which prevented it from fulfilling the request.') 16 11 17 12 18 import cgi trunk/cherrypy/test/test_tutorials.py
r856 r899 164 164 self.getPage("/error?code=500") 165 165 self.assertStatus("500 Internal error") 166 self.assertInBody("Server got itself in trouble") 166 self.assertInBody("The server encountered an unexpected condition " 167 "which prevented it from fulfilling the request.") 167 168 168 169 self.getPage("/error?code=403")

