web/test/unittest_views_editforms.py
changeset 10229 512ba8f37bd4
parent 9990 c84ad981fc4a
parent 10223 fbb370195199
child 10301 729f36a1bcfa
child 10386 82071f767cb8
--- a/web/test/unittest_views_editforms.py	Wed Feb 25 17:13:46 2015 +0100
+++ b/web/test/unittest_views_editforms.py	Thu Mar 12 14:21:36 2015 +0100
@@ -148,6 +148,13 @@
             self.vreg['forms'].select('edition', req, entity=rset.get_entity(0, 0))
             self.assertFalse(any(f for f in form.fields if f is None))
 
+    def test_edition_form_with_action(self):
+        with self.admin_access.web_request() as req:
+            rset = req.execute('CWUser X LIMIT 1')
+            form = self.vreg['forms'].select('edition', req, rset=rset, row=0,
+                                             col=0, action='my_custom_action')
+            self.assertEqual(form.form_action(), 'my_custom_action')
+
     def test_attribute_add_permissions(self):
         # https://www.cubicweb.org/ticket/4342844
         with self.admin_access.repo_cnx() as cnx: