Commit 46aad0ee authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use a different rule name for simple test.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31413 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8d718142
...@@ -60,11 +60,11 @@ class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase): ...@@ -60,11 +60,11 @@ class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase):
portal_rules = self.portal.portal_rules portal_rules = self.portal.portal_rules
try: try:
new_order_rule = filter( new_order_rule = filter(
lambda x:x.title == 'New Default Order Rule', lambda x:x.title == 'New Simple Order Rule',
portal_rules.objectValues(portal_type='New Order Rule'))[0] portal_rules.objectValues(portal_type='New Order Rule'))[0]
except IndexError: except IndexError:
new_order_rule = portal_rules.newContent( new_order_rule = portal_rules.newContent(
title='New Default Order Rule', title='New Simple Order Rule',
portal_type='New Order Rule', portal_type='New Order Rule',
reference='default_order_rule', reference='default_order_rule',
version=2, version=2,
......
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