diff --git a/tailbone/views/core.py b/tailbone/views/core.py index e30d31f2..1bcdc417 100644 --- a/tailbone/views/core.py +++ b/tailbone/views/core.py @@ -98,16 +98,3 @@ class View(object): filename = os.path.basename(path).encode('ascii', 'replace') response.headers[b'Content-Disposition'] = b'attachment; filename="{}"'.format(filename) return response - - -def fake_error(request): - """ - View which raises a fake error, to test exception handling. - """ - raise Exception("Fake error, to test exception handling.") - - -def includeme(config): - config.add_route('fake_error', '/fake-error') - config.add_view(fake_error, route_name='fake_error', - permission='admin')