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

Changeset 1674

Show
Ignore:
Timestamp:
06/18/07 12:40:50
Author:
fumanchu
Message:

Updated a test to meet new trailing_slash interaction with static (see #689).

Files:

Legend:

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

    r1470 r1674  
    106106        self.assertStatus('200 OK') 
    107107        self.assertBody('Hello, world\r\n') 
     108        # Since tools.trailing_slash is on by default, this should redirect 
    108109        self.getPage("/static2", [('Host', 'www.mydom2.com')]) 
    109         self.assertStatus('200 OK') 
    110         self.assertBody('Hello, world\r\n') 
     110        self.assertStatus((302, 303)) 
    111111 
    112112 

Hosted by WebFaction

Log in as guest/cpguest to create tickets