web/test/unittest_views_editforms.py
changeset 10223 fbb370195199
parent 9984 793377697c81
child 10229 512ba8f37bd4
--- a/web/test/unittest_views_editforms.py	Fri Mar 06 16:17:11 2015 +0100
+++ b/web/test/unittest_views_editforms.py	Tue Mar 10 11:52:04 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: