Commit e910adf1 authored by Xiaowu Zhang's avatar Xiaowu Zhang

tests/testBase: it's now possible to invalidate when in draft state

parent 10289803
......@@ -1274,7 +1274,7 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
module = self.portal.person_module
person = module.newContent(portal_type='Person')
self.assertEqual(person.getValidationState(), 'draft')
self.assertFalse(self.portal.portal_workflow.isTransitionPossible(person,
self.assertTrue(self.portal.portal_workflow.isTransitionPossible(person,
'invalidate'))
# test low-level implementation
self.portal.portal_workflow.validation_workflow._executeMetaTransition(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment