Commit 8d9f9a99 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

rename simulation rules.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33431 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bc6d8c04
......@@ -133,11 +133,11 @@ class AccountingBuildTestCase(TradeConditionTestCase):
account.validate()
itr = self.portal.portal_rules.newContent(
portal_type='Invoice Transaction Rule',
portal_type='Invoice Transaction Simulation Rule',
reference='default_invoice_transaction_rule',
id='test_invoice_transaction_rule',
title='Transaction Rule',
test_method_id='SimulationMovement_testInvoiceTransactionRule',
test_method_id='SimulationMovement_testInvoiceTransactionSimulationRule',
version=100)
predicate = itr.newContent(portal_type='Predicate',)
predicate.edit(
......
......@@ -154,10 +154,10 @@ class TestTradeModelLine(TestTradeModelLineMixin):
portal_type='Simulation Movement'):
invoicing_applied_rule = [x for x in
line_simulation_movement.objectValues()
if x.getSpecialiseValue().getPortalType() == 'Invoicing Rule'][0]
if x.getSpecialiseValue().getPortalType() == 'Invoice Simulation Rule'][0]
invoicing_movement = invoicing_applied_rule.objectValues()[0]
trade_model_rule = [x for x in invoicing_movement.objectValues()
if x.getSpecialiseValue().getPortalType() == 'Trade Model Rule'][0]
if x.getSpecialiseValue().getPortalType() == 'Trade Model Simulation Rule'][0]
result_list.append(trade_model_rule.objectValues())
return result_list
......@@ -166,7 +166,7 @@ class TestTradeModelLine(TestTradeModelLineMixin):
.objectValues()
self.assertEquals(1, len(invoice_transaction_rule_list))
invoice_transaction_rule = invoice_transaction_rule_list[0]
self.assertEqual('Invoice Transaction Rule',
self.assertEqual('Invoice Transaction Simulation Rule',
invoice_transaction_rule.getSpecialiseValue().getPortalType())
invoice_transaction_simulation_movement_list = invoice_transaction_rule \
......
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