cubicweb/test/unittest_rset.py
changeset 11874 ea1d92b677b5
parent 11870 3a84a79c4ed5
child 11892 08cf02efc7ce
--- a/cubicweb/test/unittest_rset.py	Fri Nov 18 18:19:10 2016 +0100
+++ b/cubicweb/test/unittest_rset.py	Wed Nov 23 17:19:51 2016 +0100
@@ -576,6 +576,13 @@
                               '(Any X,N WHERE X is CWGroup, X name N)'
                               ')')
 
+    def test_possible_actions_cache(self):
+        with self.admin_access.web_request() as req:
+            rset = req.execute('Any D, COUNT(U) GROUPBY D WHERE U is CWUser, U creation_date D')
+            rset.possible_actions(argument='Value')
+            self.assertRaises(AssertionError, rset.possible_actions, argument='OtherValue')
+            self.assertRaises(AssertionError, rset.possible_actions, other_argument='Value')
+
     def test_count_users_by_date(self):
         with self.admin_access.web_request() as req:
             rset = req.execute('Any D, COUNT(U) GROUPBY D WHERE U is CWUser, U creation_date D')