From b09efaef7f36d7f23107414752fc154966742fb0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 29 Jan 2009 16:55:39 +0000
Subject: [PATCH] confirmed -> stopped is no longer possible

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25366 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testAccounting.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/product/ERP5/tests/testAccounting.py b/product/ERP5/tests/testAccounting.py
index bca0f977ce..db7b39a6a4 100644
--- a/product/ERP5/tests/testAccounting.py
+++ b/product/ERP5/tests/testAccounting.py
@@ -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))
-- 
2.30.9