Commits

Anonymous committed 94751e1

#869 - Test proving that this won't break current web applications that use dispatch as a name for their controllers.

  • Participants
  • Parent commits 306bddc

Comments (0)

Files changed (1)

cherrypy/test/test_dynamicobjectmapping.py

             return "SubSubRoot handler"
         handler.exposed = True
 
+        def dispatch(self):
+            return "SubSubRoot dispatch"
+        dispatch.exposed = True
+
     subsubnodes = {
         '1': SubSubRoot(),
         '2': SubSubRoot(),
             self.getPage('/2/2/handler')
             self.assertBody('SubSubRoot handler')
 
+            self.getPage('/2/2/dispatch')
+            self.assertBody('SubSubRoot dispatch')
+
             # Dynamic dispatch will fail here for the subsubnodes
             # so the SubRoot gets called
             self.getPage('/1/asdf/')