Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1148

Show
Ignore:
Timestamp:
06/19/06 02:26:33
Author:
fumanchu
Message:

test/modpy fixes and docs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/test/modpy.py

    r1094 r1148  
    11"""Wrapper for mod_python, for use as a CherryPy HTTP server. 
    2      
    3     To autostart modpython, the "apache" executable or script must be 
    4     on your system path, or you must override ModPythonServer.APACHE_PATH. 
    5     On some platforms, "apache" may be called "apachectl" or "apache2ctl"-- 
    6     create a symlink to them if needed. 
    7      
    8     You also need the 'modpython_gateway' module at: 
    9     http://projects.amor.org/misc/wiki/ModPythonGateway 
     2 
     3To autostart modpython, the "apache" executable or script must be 
     4on your system path, or you must override ModPythonServer.APACHE_PATH. 
     5On some platforms, "apache" may be called "apachectl" or "apache2ctl"-- 
     6create a symlink to them if needed. 
     7 
     8You also need the 'modpython_gateway' module at: 
     9http://projects.amor.org/misc/wiki/ModPythonGateway 
     10 
     11 
     12KNOWN BUGS 
     13========== 
     14 
     151. Apache processes Range headers automatically; CherryPy's truncated 
     16    output is then truncated again by Apache. See test_core.testRanges. 
     172. Apache does not allow custom HTTP methods like CONNECT as per the spec. 
     18    See test_core.testHTTPMethods. 
     193. Max request header and body settings do not work with Apache. 
     204. Apache replaces status "reason phrases" automatically. For example, 
     21    CherryPy may set "304 Not modified" but Apache will write out 
     22    "304 Not Modified" (capital "M"). 
     235. Apache does not allow custom error codes as per the spec. 
     246. Apache (or perhaps modpython, or modpython_gateway) unquotes %xx in the 
     25    Request-URI too early. 
    1026""" 
    1127 
  • trunk/cherrypy/test/test_etags.py

    r1133 r1148  
    5050        # Test If-None-Match (both valid and invalid) 
    5151        self.getPage("/resource", headers=[('If-None-Match', etag)]) 
    52         self.assertStatus("304 Not modified"
     52        self.assertStatus(304
    5353        self.getPage("/resource", method='POST', headers=[('If-None-Match', etag)]) 
    5454        self.assertStatus("412 Precondition Failed") 
    5555        self.getPage("/resource", headers=[('If-None-Match', "*")]) 
    56         self.assertStatus("304 Not modified"
     56        self.assertStatus(304
    5757        self.getPage("/resource", headers=[('If-None-Match', "a bogus tag")]) 
    5858        self.assertStatus("200 OK") 
  • trunk/cherrypy/test/test_static.py

    r1133 r1148  
    127127        ims = ("If-Modified-Since", lastmod) 
    128128        self.getPage("/static/dirback.jpg", headers=[ims]) 
    129         self.assertStatus("304 Not modified"
     129        self.assertStatus(304
    130130##         
    131131##        # Test lots of requests for the same file (no If-Mod). 

Hosted by WebFaction

Log in as guest/cpguest to create tickets