[Erp5-report] r22899 - /erp5/trunk/products/ERP5/tests/testPackingList.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Aug 6 13:48:07 CEST 2008
Author: jerome
Date: Wed Aug 6 13:48:06 2008
New Revision: 22899
URL: http://svn.erp5.org?rev=22899&view=rev
Log:
objectValues does not support id= argument
Modified:
erp5/trunk/products/ERP5/tests/testPackingList.py
Modified: erp5/trunk/products/ERP5/tests/testPackingList.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testPackingList.py?rev=22899&r1=22898&r2=22899&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testPackingList.py (original)
+++ erp5/trunk/products/ERP5/tests/testPackingList.py Wed Aug 6 13:48:06 2008
@@ -681,14 +681,14 @@
def stepCreateCurrency(self, sequence, **kw) :
"""Create a default currency. """
currency_module = self.getCurrencyModule()
- if len(currency_module.objectValues(id='EUR'))==0:
+ if currency_module._getOb('EUR', None) is None:
currency = self.getCurrencyModule().newContent(
portal_type='Currency',
id="EUR",
base_unit_quantity=0.01,
)
else:
- currency = currency_module.objectValues(id='EUR')[0]
+ currency = currency_module._getOb('EUR')
sequence.edit(currency=currency)
def stepSetOrderPriceCurrency(self, sequence, **kw) :
More information about the Erp5-report
mailing list