Commits

Robert Brewer committed afd5d43

Updated test_routes to work with 1.12+, which requires explicit action args and requires route args to begin with a slash.

Comments (0)

Files changed (1)

cherrypy/test/test_routes.py

                 return "OK"
             
         d = cherrypy.dispatch.RoutesDispatcher()
-        d.connect(name='hounslow', route='hounslow', controller=City('Hounslow'))
-        d.connect(name='surbiton', route='surbiton', controller=City('Surbiton'),
+        d.connect(action='index', name='hounslow', route='/hounslow',
+                  controller=City('Hounslow'))
+        d.connect(name='surbiton', route='/surbiton', controller=City('Surbiton'),
                   action='index', conditions=dict(method=['GET']))
-        d.mapper.connect('surbiton', controller='surbiton',
+        d.mapper.connect('/surbiton', controller='surbiton',
                          action='update', conditions=dict(method=['POST']))
         d.connect('main', ':action', controller=Dummy())