Changeset 411
- Timestamp:
- 07/05/05 18:37:57
- Files:
-
- trunk/cherrypy/test/test_core.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/test/test_core.py
r385 r411 49 49 class Test(object): 50 50 __metaclass__ = TestType 51 52 53 class Params(Test): 54 55 def index(self, thing): 56 return thing 51 57 52 58 … … 213 219 214 220 def testConfig(self): 215 import cherrypy216 221 tests = [ 217 222 ('/', 'nex', None ), … … 230 235 self.assertEqual(result, expected) 231 236 237 def testParams(self): 238 helper.request("/params/?thing=a") 239 self.assertEqual(cherrypy.response.body, 'a') 240 241 helper.request("/params/?thing=a&thing=b&thing=c") 242 self.assertEqual(cherrypy.response.body, 'abc') 243 232 244 def testStatus(self): 233 245 helper.request("/status/") … … 314 326 315 327 def testErrorHandling(self): 328 helper.request("/error/missing") 329 self.assert_("NotFound" in cherrypy.response.body) 330 316 331 valerr = '\n raise ValueError\nValueError\n' 317 332 helper.request("/error/page_method") … … 338 353 'Location', 'Server']) 339 354 340 def test Methods(self):355 def testHTTPMethods(self): 341 356 # Test that all defined HTTP methods work. 342 357 for m in defined_http_methods:

