devtools/testlib.py
changeset 4523 d8127c2bd6b5
parent 4513 8abf464d2ffe
child 4681 5f72584ab1d7
equal deleted inserted replaced
4522:271f201e3735 4523:d8127c2bd6b5
   501             path = path[len(req.base_url()):]
   501             path = path[len(req.base_url()):]
   502             return path, params
   502             return path, params
   503         else:
   503         else:
   504             self.fail('expected a Redirect exception')
   504             self.fail('expected a Redirect exception')
   505 
   505 
   506     def expect_redirect_publish(self, req, path='view'):
   506     def expect_redirect_publish(self, req, path='edit'):
   507         """call the publish method of the application publisher, expecting to
   507         """call the publish method of the application publisher, expecting to
   508         get a Redirect exception
   508         get a Redirect exception
   509         """
   509         """
   510         return self.expect_redirect(lambda x: self.app_publish(x, path), req)
   510         return self.expect_redirect(lambda x: self.app_publish(x, path), req)
   511 
   511