equal
deleted
inserted
replaced
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 |