Commit 4da286d6 authored by Łukasz Nowak's avatar Łukasz Nowak

- need to confirm before cancel to have any simulations


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27005 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0179a72f
......@@ -1592,6 +1592,8 @@ class TestDeliveryRule(TestPackingListMixin, ERP5TypeTestCase):
def test_delivery_rule_simulation_cancel(self):
self.createDocuments()
self.delivery.confirm()
self.assertEqual('confirmed', self.delivery.getSimulationState())
transaction.commit() ; self.tic()
self.delivery.cancel()
self.assertEqual('cancelled', self.delivery.getSimulationState())
......
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