Changeset 1514
- Timestamp:
- 12/11/06 04:05:15
- Files:
-
- trunk/cherrypy/test/static/has space.html (deleted)
- trunk/cherrypy/test/test_static.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/test/test_static.py
r1311 r1514 4 4 import os 5 5 curdir = os.path.join(os.getcwd(), os.path.dirname(__file__)) 6 has_space_filepath = os.path.join(curdir, 'static', 'has space.html') 6 7 import threading 7 8 8 9 import cherrypy 9 10 10 11 11 def setup_server(): 12 if not os.path.exists(has_space_filepath): 13 file(has_space_filepath, 'wb').write('Hello, world\r\n') 14 12 15 class Root: 13 16 pass … … 52 55 cherrypy.config.update({'environment': 'test_suite'}) 53 56 57 def teardown_server(): 58 if os.path.exists(has_space_filepath): 59 try: 60 os.unlink(has_space_filepath) 61 except: 62 pass 63 54 64 from cherrypy.test import helper 55 65

