Commit b09efaef authored by Jérome Perrin's avatar Jérome Perrin

confirmed -> stopped is no longer possible


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25366 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 95797b95
......@@ -636,6 +636,10 @@ class TestTransactionValidation(AccountingTestCase):
self.assertEquals('confirmed', transaction.getSimulationState())
self.assertTrue(_checkPermission('Modify portal content', transaction))
doActionFor(transaction, 'start_action')
self.assertEquals('started', transaction.getSimulationState())
self.assertTrue(_checkPermission('Modify portal content', transaction))
doActionFor(transaction, 'stop_action')
self.assertEquals('stopped', transaction.getSimulationState())
self.assertFalse(_checkPermission('Modify portal content', transaction))
......
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