ext/test/unittest_rest.py
changeset 10960 9e64fddebc89
parent 10754 03aa9f2a4ecb
parent 10953 8b8193046600
--- a/ext/test/unittest_rest.py	Tue Sep 08 09:05:31 2015 +0200
+++ b/ext/test/unittest_rest.py	Thu Dec 10 12:34:15 2015 +0100
@@ -33,7 +33,7 @@
             self.assertEqual(rest_publish(context, ':eid:`%s`' % context.eid),
                              '<p><a class="reference" href="http://testing.fr/cubicweb/cwuser/admin">'
                              '#%s</a></p>\n' % context.eid)
-            self.assertEqual(rest_publish(context, ':eid:`%s:some text`' %  context.eid),
+            self.assertEqual(rest_publish(context, ':eid:`%s:some text`' % context.eid),
                              '<p><a class="reference" href="http://testing.fr/cubicweb/cwuser/admin">'
                              'some text</a></p>\n')
 
@@ -60,6 +60,14 @@
 
 ''')
 
+    def test_disable_field_name_colspan(self):
+        with self.admin_access.web_request() as req:
+            context = self.context(req)
+            value = rest_publish(context, '''my field list:
+
+:a long dumb param name: value
+''')
+            self.assertNotIn('colspan', value)
 
     def test_rql_role_with_vid(self):
         with self.admin_access.web_request() as req: