branch | stable |
changeset 8504 | f21c72928662 |
parent 8487 | 017af22e7678 |
child 8544 | 3d049071957e |
--- a/web/test/unittest_views_basecontrollers.py Tue Jul 31 11:04:45 2012 +0200 +++ b/web/test/unittest_views_basecontrollers.py Wed Aug 01 09:20:47 2012 +0200 @@ -781,6 +781,14 @@ res, req = self.remote_call('foo') self.assertEqual(res, '12') + def test_monkeypatch_jsoncontroller_stdfunc(self): + @monkeypatch(JSonController) + @jsonize + def js_reledit_form(self): + return 12 + res, req = self.remote_call('reledit_form') + self.assertEqual(res, '12') + class UndoControllerTC(CubicWebTC):