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

Changeset 1428

Show
Ignore:
Timestamp:
11/13/06 17:41:35
Author:
fumanchu
Message:

New test showing that cherrypy.url fails with relative path when using virtual host.

Files:

Legend:

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

    r1275 r1428  
    3030            return "You sent %s" % repr(value) 
    3131        vmethod.exposed = True 
     32         
     33        def url(self): 
     34            return cherrypy.url("nextpage") 
     35        url.exposed = True 
    3236     
    3337     
     
    7276        self.getPage("/vmethod/pos", [('Host', 'www.mydom3.com')]) 
    7377        self.assertBody("You sent 'pos'") 
     78         
     79        self.getPage("/url", [('Host', 'www.mydom2.com')]) 
     80        self.assertBody("http://www.mydom2.com/nextpage") 
    7481 
    7582 

Hosted by WebFaction

Log in as guest/cpguest to create tickets