Source

CherryPy / cherrypy / test / test_core.py

Author Commit Message Labels Comments Date
Robert Brewer avatarRobert Brewer
A couple of Python 2.3 fixes
Tags
cherrypy-3.2.2
Robert Brewer avatarRobert Brewer
Fixed #1087 (PEP-3333 compliance: Unicode response headers). Also some touch-ups to prevent refleaks.
Robert Brewer avatarRobert Brewer
Test and fix for #1055 (cherrypy.response.status is None during on_end_resource phase)
Robert Brewer avatarRobert Brewer
Bye bye, py2/3.
Robert Brewer avatarRobert Brewer
More Python 2.3 fixes.
Robert Brewer avatarRobert Brewer
Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.
Robert Brewer avatarRobert Brewer
trunk sync with python3
Robert Brewer avatarRobert Brewer
Fix for #1003 (Security issue: HTTPRedirect exception can be used to inject headers). Fixed the hole in all headers, not just redirect Location.
Robert Brewer avatarRobert Brewer
Removed test.py etc.
Default avatar Joseph Tate
Convert the tests to use nose instead of our own runner. This strips out much coverage and profiling (handled by nose) and lets you focus on writing tests.
Robert Brewer avatarRobert Brewer
A couple of unnecessary imports.
Robert Brewer avatarRobert Brewer
Removed py3print.
Robert Brewer avatarRobert Brewer
Fixed a nasty encoding bug in InternalRedirect (exposed by Python 2.3, whose unicode type has no 'decode' method).
Default avatar Lakin Wecker
trunk - adding a py3util module that will normalize as many differences between this branch and the python3 branch as it can. First it includes a py3print call who's signature matches that of print in python3. Also removed a few byte strings of the form b''
Robert Brewer avatarRobert Brewer
Cookie test tweak.
Robert Brewer avatarRobert Brewer
Brought trunk up to par with the encoding changes from the python3 branch.
Default avatar Lakin Wecker
trunk - Porting the cherrypy.lib.httputil name change. It'll be easier to maintain two released branches if the modules are named the same. However, in the 2.6 branch we'll leave cherrypy.lib.http working and deprecate it for 3.3.
Default avatar jaraco
Refactored testCookies to unify the tests despite Python differences in cookie handling
Default avatar jaraco
Added handling of invalid cookie names by responding with 400 Bad Request.
Robert Brewer avatarRobert Brewer
Fix for #906 (Firefox displays a popup on redirect). Reverted [2149] and changed the trailing slash tool to prefer 301.
Robert Brewer avatarRobert Brewer
Broke a bunch of test_core tests out into a new test_request_obj.py.
Robert Brewer avatarRobert Brewer
Moved "environment: test_suite" out of individual tests and into helper.py. Moved setup_server() call out of individual tests and into helper.py. Added a new test for per-handler max_request_body_size shenanigans.
Robert Brewer avatarRobert Brewer
Fix for #898 (HTTPError should accept status code in same format as get_error_page).
Robert Brewer avatarRobert Brewer
New test module for config in the "server.*" namespace.
Robert Brewer avatarRobert Brewer
test_core tweak for --ssl.
Robert Brewer avatarRobert Brewer
New test for Host header being used in cherrypy.url().
Default avatar Lakin Wecker
#883 - (last comments) - provide a way to turn off the mismatched parameter messages with tests.
Default avatar Lakin Wecker
Fixes #883 - Add in a better getargspec that works on callable objects. Add in tests that assert two things: 1. That our 400/404 detection mechanism works on callable objects and that when a handler raises a TypeError it gets re-raised into a 500 error.
Robert Brewer avatarRobert Brewer
Silenced some long-known test disparities when using Apache as the server in a separate process.
Robert Brewer avatarRobert Brewer
Fixed test suites to match [2069].
  1. Prev
  2. 1
  3. 2
  4. 3
  5. 4
  6. 5
  7. 6
  8. 7
  9. Next
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.