Commits

Anonymous committed e0685e0

Simple test that demonstrates that cherrypy.request.path is not getting populated correctly. It is an empty string.

  • Participants
  • Parent commits b07e12b

Comments (0)

Files changed (1)

cherrypy/test/test_core.py

 
 class CoreRequestHandlingTest(helper.CPWebCase):
     
+    def testRequestPath(self):
+        self.getPage("/andnow")
+        self.assertStatus("200 OK")
+        self.assertEqual(cherrypy.request.path, "/andnow")
+    
     def testParams(self):
         self.getPage("/params/?thing=a")
         self.assertBody("'a'")