equal
deleted
inserted
replaced
1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
348 self.assertEqual(cstr.repo_check(self.session, 1, self.session.user.eid), |
348 self.assertEqual(cstr.repo_check(self.session, 1, self.session.user.eid), |
349 None) # no validation error, constraint checked |
349 None) # no validation error, constraint checked |
350 |
350 |
351 class WorkflowShemaTC(CubicWebTC): |
351 class WorkflowShemaTC(CubicWebTC): |
352 def test_trinfo_default_format(self): |
352 def test_trinfo_default_format(self): |
353 tr = self.session.user.cw_adapt_to('IWorkflowable').fire_transition('deactivate') |
353 tr = self.request().user.cw_adapt_to('IWorkflowable').fire_transition('deactivate') |
354 self.assertEqual(tr.comment_format, 'text/plain') |
354 self.assertEqual(tr.comment_format, 'text/plain') |
355 |
355 |
356 if __name__ == '__main__': |
356 if __name__ == '__main__': |
357 unittest_main() |
357 unittest_main() |