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

Changeset 1534

Show
Ignore:
Timestamp:
12/16/06 14:20:53
Author:
fumanchu
Message:

test_core buglet under HTTP/1.0. Also removed unused function.

Files:

Legend:

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

    r1529 r1534  
    389389            cherrypy.request.asdf = "rassfrassin" 
    390390            return existing 
    391      
    392     def check(login, password): 
    393         # Dummy check_login_and_password function 
    394         if login != 'login' or password != 'password': 
    395             return u'Wrong login/password' 
    396391     
    397392    cherrypy.config.update({ 
     
    620615        self.getPage("/redirect/fragment/%s" % frag) 
    621616        self.assertMatchesBody(r"<a href='(.*)\/some\/url\#%s'>\1\/some\/url\#%s</a>" % (frag, frag)) 
    622         self.assert_(dict(self.headers)['Location'].endswith("#%s" % frag)) 
    623         self.assertStatus(303) 
     617        loc = self.assertHeader('Location') 
     618        assert loc.endswith("#%s" % frag) 
     619        self.assertStatus(('302 Found', '303 See Other')) 
    624620     
    625621    def test_InternalRedirect(self): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets