--- a/cubicweb/web/test/unittest_views_basecontrollers.py Mon Jun 19 18:00:26 2017 +0200
+++ b/cubicweb/web/test/unittest_views_basecontrollers.py Mon Jun 19 18:15:28 2017 +0200
@@ -1012,6 +1012,13 @@
f = appobject(req)
self.assertEqual(f(12, 13), '25')
+ def test_badrequest(self):
+ with self.assertRaises(RemoteCallFailed) as cm:
+ with self.remote_calling('foo'):
+ pass
+ self.assertEqual(cm.exception.status, 400)
+ self.assertEqual(cm.exception.reason, 'no foo method')
+
class JSonControllerTC(AjaxControllerTC):
# NOTE: this class performs the same tests as AjaxController but with