Commit ea50d1c4 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix portal_type passed to getTotalPrice to make function call work when fast is set to 0.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18493 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 144c57a0
......@@ -232,12 +232,12 @@ class TestERP5BankingInternalMoneyPayment(TestERP5BankingMixin, ERP5TypeTestCase
def stepDeliverInternalMoneyPayment(self, sequence=None, sequence_list=None, **kwd):
self.assertEqual(self.internal_money_payment.getSourceTotalAssetPrice(),
self.internal_money_payment.getTotalPrice(fast=0, portal_type = 'Cash Delivery Cell'))
self.internal_money_payment.getTotalPrice(fast=0, portal_type = ['Cash Delivery Line', 'Cash Delivery Cell']))
self.workflow_tool.doActionFor(self.internal_money_payment, 'deliver_action', wf_id='internal_money_payment_workflow')
self.assertEqual(self.internal_money_payment.getSimulationState(), 'delivered')
self.assertEqual(self.internal_money_payment.getSourceTotalAssetPrice(), 20000.0)
self.assertEqual(20000.0, self.internal_money_payment.getTotalPrice(fast=0, portal_type = 'Cash Delivery Cell'))
self.assertEqual(20000.0, self.internal_money_payment.getTotalPrice(fast=0, portal_type = ['Cash Delivery Line', 'Cash Delivery Cell']))
def stepCheckFinalInventory(self, sequence=None, sequence_list=None, **kwd):
......
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