equal
deleted
inserted
replaced
1010 # no pageid |
1010 # no pageid |
1011 with self.admin_access.web_request() as req: |
1011 with self.admin_access.web_request() as req: |
1012 f = appobject(req) |
1012 f = appobject(req) |
1013 self.assertEqual(f(12, 13), '25') |
1013 self.assertEqual(f(12, 13), '25') |
1014 |
1014 |
|
1015 def test_badrequest(self): |
|
1016 with self.assertRaises(RemoteCallFailed) as cm: |
|
1017 with self.remote_calling('foo'): |
|
1018 pass |
|
1019 self.assertEqual(cm.exception.status, 400) |
|
1020 self.assertEqual(cm.exception.reason, 'no foo method') |
|
1021 |
1015 |
1022 |
1016 class JSonControllerTC(AjaxControllerTC): |
1023 class JSonControllerTC(AjaxControllerTC): |
1017 # NOTE: this class performs the same tests as AjaxController but with |
1024 # NOTE: this class performs the same tests as AjaxController but with |
1018 # deprecated 'json' controller (i.e. check backward compatibility) |
1025 # deprecated 'json' controller (i.e. check backward compatibility) |
1019 tested_controller = 'json' |
1026 tested_controller = 'json' |