From b3f76a9de12476f18d9349be1b4649b37c7406ed Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Tue, 12 Jan 2010 09:00:11 +0000 Subject: [PATCH] use (overriden) Order Rule instead of a new class named New Order Rule. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31702 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testERP5Simulation.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/product/ERP5/tests/testERP5Simulation.py b/product/ERP5/tests/testERP5Simulation.py index de4f2b2cd0..f502cb8870 100644 --- a/product/ERP5/tests/testERP5Simulation.py +++ b/product/ERP5/tests/testERP5Simulation.py @@ -46,7 +46,7 @@ class TestERP5SimulationMixin(TestPackingListMixin): def afterSetUp(self, quiet=1, run=1): TestPackingListMixin.afterSetUp(self, quiet, run) portal_rules = self.portal.portal_rules - for rule in portal_rules.objectValues(portal_type='New Order Rule'): + for rule in portal_rules.objectValues(portal_type='Order Rule'): if rule.getValidationState() == 'validated': rule.invalidate() self.validateNewRules() @@ -56,11 +56,11 @@ class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase): quiet = 0 def validateNewRules(self): - # create a New Order Rule document. + # create an Order Rule document. portal_rules = self.portal.portal_rules new_order_rule = filter( lambda x:x.title == 'New Simple Order Rule', - portal_rules.objectValues(portal_type='New Order Rule'))[0] + portal_rules.objectValues(portal_type='Order Rule'))[0] if new_order_rule.getValidationState() != 'validated': new_order_rule.validate() @@ -206,11 +206,11 @@ class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase): class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList): def validateNewRules(self): - # create a New Order Rule document. + # create an Order Rule document. portal_rules = self.portal.portal_rules new_order_rule = filter( lambda x:x.title == 'New Default Order Rule', - portal_rules.objectValues(portal_type='New Order Rule'))[0] + portal_rules.objectValues(portal_type='Order Rule'))[0] if new_order_rule.getValidationState() != 'validated': new_order_rule.validate() -- 2.30.9