1. Robert Pattinson
  2. CherryPy

Source

CherryPy / cherrypy / test / test_objectmapping.py

Author Commit Message Date Builds
Robert Brewer
Removed a couple of test suite dependencies on httptools.
Robert Brewer
Fix for #315. Removed Python 2.4 dependency (@-syntax), which was killing setup.py under 2.3.
Robert Brewer
Fix for ticket #249 (ExposeAs recipe). The underscore hack is retained (and not reversed). %xx chars (ticket #104) were fixed in [561], so neither #104 nor #248 (firefox hack) apply anymore to #249.
Robert Brewer
1. Partial fix for #248; the request path is now %XX-decoded as soon as possible (was in mapPathToObject). This means config sections can now be decoded, as well (e.g. you should now write [/this path] instead of [/this%20path]). 2. Changeset [559] broke logging test--fixed.
Robert Brewer
Added test for URL's which are not valid Python identifiers.
Robert Brewer
1. Config section [global] (pathless) is now distinct from [/] (root path); they are no longer synonyms. "global" is the parent of "/". 2. The Request-URI is now parsed much earlier in Request processing, so that onStartResource and error filter methods may have access to it. 3. Absolute URI's (on the request line) are now converted to relative URI's to facilitate configMap lookups. 4. A Request-URI of "*" sets cherrypy.request.path to "global" (again for configMap). 5. Fixed a bug in config.getAll where the initial slash was miss…
Robert Brewer
1. Moved top-level test functions into a new TestHarness class. 2. Removed helper.HOST and .PORT. 3. Removed helper.port_is_free, since cherrypy.server now checks for free port.
Robert Brewer
1. Removed log() before config read. 2. Moved some things around in the test suite to make them easier to reuse by CP apps.
Robert Brewer
New webtest methods, such as assertStatus, assertHeader, assertInBody
Robert Brewer
Pulled base web testing functionality into test\webtest.py. Exceptions in server now show traceback in console, and raise ServerError in client test.
Robert Brewer
Implements ticket #195. 1. cpg module removed, all content moved into cherrypy.__init__. 2. Removed some circular imports in sessionfilter by moving sessionfilter.sessionfilter and _sessionTypes into sessionfilter.__init__. 3. renamed _cpconfig to "config". 4. renamed _cpserver to "server". 5. renamed cperror to _cperror; cherrypy.__init__ now imports * from _cperror.
Robert Brewer
Implements ticket #196 (generic redirection mechanism).
Remi Delon
Now using 'global' for the main config key. ('/' still works but 'global' is the default). Still need to update the docs
Robert Brewer
Merged new test suite from branches/ticket-177 into trunk.