1. samuel_bonilla
  2. CherryPy

Commits

Christian Wyglendowski  committed e0685e0

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

  • Participants
  • Parent commits b07e12b
  • Branches default

Comments (0)

Files changed (1)

File cherrypy/test/test_core.py

View file
 
 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'")