Commit 623493ea authored by Vincent Pelletier's avatar Vincent Pelletier

ved" state has been renamed into "deposited" to impact current inventory.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19252 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c1c848bd
...@@ -153,22 +153,22 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -153,22 +153,22 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
self.assertEqual(self.hq_mutilated_banknote.getSimulationState(), 'cancelled') self.assertEqual(self.hq_mutilated_banknote.getSimulationState(), 'cancelled')
def stepArchiveDocument(self, sequence=None, sequence_list=None, **kwd): def stepDepositDocument(self, sequence=None, sequence_list=None, **kwd):
""" """
Archive document. Deposit document.
""" """
self.workflow_tool.doActionFor(self.mutilated_banknote, 'archive_action', wf_id='mutilated_banknote_workflow') self.workflow_tool.doActionFor(self.mutilated_banknote, 'deposit_action', wf_id='mutilated_banknote_workflow')
self.assertEqual(self.mutilated_banknote.getSimulationState(), 'archived') self.assertEqual(self.mutilated_banknote.getSimulationState(), 'depositd')
def stepArchiveHQDocument(self, sequence=None, sequence_list=None, **kwd): def stepDepositHQDocument(self, sequence=None, sequence_list=None, **kwd):
""" """
Archive HQ document. Deposit HQ document.
""" """
self.hq_mutilated_banknote.setDestinationTotalAssetPrice(50000.0) self.hq_mutilated_banknote.setDestinationTotalAssetPrice(50000.0)
self.assertEqual(self.hq_mutilated_banknote.getDestinationTotalAssetPrice(), 50000.0) self.assertEqual(self.hq_mutilated_banknote.getDestinationTotalAssetPrice(), 50000.0)
self.workflow_tool.doActionFor(self.hq_mutilated_banknote, 'archive_action', wf_id='mutilated_banknote_workflow') self.workflow_tool.doActionFor(self.hq_mutilated_banknote, 'deposit_action', wf_id='mutilated_banknote_workflow')
self.stepTic() self.stepTic()
self.assertEqual(self.hq_mutilated_banknote.getSimulationState(), 'archived') self.assertEqual(self.hq_mutilated_banknote.getSimulationState(), 'depositd')
def stepCheckInitialInventory(self, sequence=None, sequence_list=None, **kwd): def stepCheckInitialInventory(self, sequence=None, sequence_list=None, **kwd):
""" """
...@@ -390,12 +390,12 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -390,12 +390,12 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
self.assertEqual(len(self.hq_mutilated_banknote.objectValues(portal_type="Exchanged Mutilated Banknote Line")), 0.0) self.assertEqual(len(self.hq_mutilated_banknote.objectValues(portal_type="Exchanged Mutilated Banknote Line")), 0.0)
self.assertRaises(ValidationFailed, self.workflow_tool.doActionFor, self.hq_mutilated_banknote, 'finish_action', wf_id='mutilated_banknote_workflow') self.assertRaises(ValidationFailed, self.workflow_tool.doActionFor, self.hq_mutilated_banknote, 'finish_action', wf_id='mutilated_banknote_workflow')
def stepTryArchiveHQWithNoLineDefined(self, sequence=None, sequence_list=None, **kw): def stepTryDepositHQWithNoLineDefined(self, sequence=None, sequence_list=None, **kw):
""" """
Try to archive with no line defined on the document Try to deposit with no line defined on the document
""" """
self.assertEqual(len(self.hq_mutilated_banknote.objectValues(portal_type="Exchanged Mutilated Banknote Line")), 0.0) self.assertEqual(len(self.hq_mutilated_banknote.objectValues(portal_type="Exchanged Mutilated Banknote Line")), 0.0)
self.assertRaises(ValidationFailed, self.workflow_tool.doActionFor, self.hq_mutilated_banknote, 'archive_action', wf_id='mutilated_banknote_workflow') self.assertRaises(ValidationFailed, self.workflow_tool.doActionFor, self.hq_mutilated_banknote, 'deposit_action', wf_id='mutilated_banknote_workflow')
def stepTryFinishWithNoAmountDefined(self, sequence=None, sequence_list=None, **kw): def stepTryFinishWithNoAmountDefined(self, sequence=None, sequence_list=None, **kw):
""" """
...@@ -411,12 +411,12 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -411,12 +411,12 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
self.assertEqual(self.hq_mutilated_banknote.getDestinationTotalAssetPrice(), 0.0) self.assertEqual(self.hq_mutilated_banknote.getDestinationTotalAssetPrice(), 0.0)
self.assertRaises(ValidationFailed, self.workflow_tool.doActionFor, self.hq_mutilated_banknote, 'finish_action', wf_id='mutilated_banknote_workflow') self.assertRaises(ValidationFailed, self.workflow_tool.doActionFor, self.hq_mutilated_banknote, 'finish_action', wf_id='mutilated_banknote_workflow')
def stepTryArchiveHQWithNoAmountDefined(self, sequence=None, sequence_list=None, **kw): def stepTryDepositHQWithNoAmountDefined(self, sequence=None, sequence_list=None, **kw):
""" """
Try to archive with no amount defined on the document Try to deposit with no amount defined on the document
""" """
self.assertEqual(self.hq_mutilated_banknote.getDestinationTotalAssetPrice(), 0.0) self.assertEqual(self.hq_mutilated_banknote.getDestinationTotalAssetPrice(), 0.0)
self.assertRaises(ValidationFailed, self.workflow_tool.doActionFor, self.hq_mutilated_banknote, 'archive_action', wf_id='mutilated_banknote_workflow') self.assertRaises(ValidationFailed, self.workflow_tool.doActionFor, self.hq_mutilated_banknote, 'deposit_action', wf_id='mutilated_banknote_workflow')
def stepFinishDocument(self, sequence=None, sequence_list=None, **kw): def stepFinishDocument(self, sequence=None, sequence_list=None, **kw):
""" """
...@@ -859,7 +859,7 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -859,7 +859,7 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
+ 'CreateHQIncomingLine Tic StopHQDocument Tic ' \ + 'CreateHQIncomingLine Tic StopHQDocument Tic ' \
+ 'CheckHQInventoryWithIncommingMaculatedBanknotes ' \ + 'CheckHQInventoryWithIncommingMaculatedBanknotes ' \
+ 'CheckHQMaculatedBanknoteInventory ' \ + 'CheckHQMaculatedBanknoteInventory ' \
+ 'TryArchiveHQWithNoLineDefined CreateHQExchangedLine Tic TryArchiveHQWithNoAmountDefined ArchiveHQDocument Tic ' \ + 'TryDepositHQWithNoLineDefined CreateHQExchangedLine Tic TryDepositHQWithNoAmountDefined DepositHQDocument Tic ' \
+ 'MoveHQToFuture Tic ' \ + 'MoveHQToFuture Tic ' \
+ 'HQLogout ' \ + 'HQLogout ' \
+ 'CheckHQFinalInventoryWithPayBack '\ + 'CheckHQFinalInventoryWithPayBack '\
......
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