test/unittest_schema.py
branchstable
changeset 8336 7ccd4367ee1c
parent 8167 41ec579e27c4
child 8549 0740ffe73df1
--- a/test/unittest_schema.py	Thu Mar 29 14:24:49 2012 +0200
+++ b/test/unittest_schema.py	Thu Mar 29 14:25:51 2012 +0200
@@ -348,6 +348,10 @@
         self.assertEqual(cstr.repo_check(self.session, 1, self.session.user.eid),
         None) # no validation error, constraint checked
 
+class WorkflowShemaTC(CubicWebTC):
+    def test_trinfo_default_format(self):
+         tr = self.session.user.cw_adapt_to('IWorkflowable').fire_transition('deactivate')
+         self.assertEqual(tr.comment_format, 'text/plain')
 
 if __name__ == '__main__':
     unittest_main()