From 9cd414fa9668a1c6ab1c97185d4460814cdd87c5 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 11 Nov 2010 12:37:47 -0500 Subject: [PATCH] reverting tests for validation in sub controllers since the bug is non-existent --- tests/test_validation.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/tests/test_validation.py b/tests/test_validation.py index c10900b..353605b 100644 --- a/tests/test_validation.py +++ b/tests/test_validation.py @@ -87,27 +87,8 @@ class TestValidation(object): ] - class SubSubRootController(object): - @expose('json') - def index(self): - redirect('/sub/deeper/not_empty', internal=True) - - @expose('json') - def not_empty(self, data): - return data - - - class SubRootController(object): - @expose('json') - def index(self): - return '/sub' - - deeper = SubSubRootController() - class RootController(object): - sub = SubRootController() - @expose() def errors(self, *args, **kwargs): assert request.validation_error is not None @@ -145,12 +126,6 @@ class TestValidation(object): assert request.validation_error is not None return 'Success!' - # post some JSON to a sub controller and fail - app = TestApp(make_app(RootController())) - resp = app.post('/sub/deeper', dumps({'name':'foobar'})) - assert resp.body != {} - - # test without error handler app = TestApp(make_app(RootController()))