diff options
Diffstat (limited to 'tests/pecantest/test/controllers/root.py')
-rw-r--r-- | tests/pecantest/test/controllers/root.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/pecantest/test/controllers/root.py b/tests/pecantest/test/controllers/root.py deleted file mode 100644 index 6e87267..0000000 --- a/tests/pecantest/test/controllers/root.py +++ /dev/null @@ -1,21 +0,0 @@ -from pecan import expose -from webob.exc import status_map -from .ws import AuthorsController -from wsmeext.pecan import wsexpose - - -class RootController(object): - authors = AuthorsController() - - @expose('error.html') - def error(self, status): - try: - status = int(status) - except ValueError: # pragma: no cover - status = 500 - message = getattr(status_map.get(status), 'explanation', '') - return dict(status=status, message=message) - - @wsexpose() - def divide_by_zero(self): - 1 / 0 |