1 """Tests for managing HTTP issues (malformed requests, etc).
2
3 Some of these tests check timeouts, etcetera, and therefore take a long
4 time to run. Therefore, this module should probably not be included in
5 the 'comprehensive' test suite (test.py).
6 """
7
8 from cherrypy.test import test
9 test.prefer_parent_path()
10
11 import httplib
12 import cherrypy
13
14
16
17 class Root:
18 def index(self, *args, **kwargs):
19 return "Hello world!"
20 index.exposed = True
21
22 cherrypy.tree.mount(Root())
23 cherrypy.config.update({'environment': 'test_suite'})
24
25
26 from cherrypy.test import helper
27
37
38
39 if __name__ == '__main__':
40 setup_server()
41 helper.testmain()
42