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

Changeset 1364

Show
Ignore:
Timestamp:
09/14/06 12:35:02
Author:
dowski
Message:

Test for change in [1363].

Files:

Legend:

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

    r1361 r1364  
    791791                              ("Accept-Charset", "unicode-1-1;q=0.8")]) 
    792792        self.assertBody("iso-8859-5, unicode-1-1;q=0.8") 
    793      
     793         
     794        # If we don't pass a Content-Type header, it should not be present 
     795        # in cherrypy.request.headers 
     796        self.getPage("/headers/Content-Type", 
     797                     headers=[]) 
     798        self.assertStatus(500) 
     799         
     800        # If Content-Type is present in the request, it should be present in 
     801        # cherrypy.request.headers 
     802        self.getPage("/headers/Content-Type", 
     803                     headers=[("Content-type", "application/json")]) 
     804        self.assertBody("application/json") 
     805         
    794806    def testHTTPMethods(self): 
    795807        helper.webtest.methods_with_bodies = ("POST", "PUT", "PROPFIND") 

Hosted by WebFaction

Log in as guest/cpguest to create tickets