Changeset 1453
- Timestamp:
- 11/27/06 17:00:45
- Files:
-
- trunk/cherrypy/test/test_virtualhost.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/test/test_virtualhost.py
r1440 r1453 1 2 1 from cherrypy.test import test 3 2 test.prefer_parent_path() 3 4 import os 5 curdir = os.path.join(os.getcwd(), os.path.dirname(__file__)) 4 6 5 7 import cherrypy … … 35 37 return cherrypy.url("nextpage") 36 38 url.exposed = True 39 40 static = cherrypy.tools.staticdir.handler(section='/static', dir=curdir) 37 41 38 42 … … 81 85 self.getPage("/url", [('Host', 'www.mydom2.com')]) 82 86 self.assertBody("%s://www.mydom2.com/nextpage" % self.scheme) 87 88 def test_VHost_plus_Static(self): 89 self.getPage("/static/style.css", [('Host', 'www.mydom2.com')]) 90 self.assertStatus('200 OK') 91 self.assertHeader('Content-Type', 'text/css') 83 92 84 93

