[Erp5-report] r30968 - /erp5/trunk/products/ERP5Type/tests/testERP5Type.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Dec 1 16:19:21 CET 2009
Author: jerome
Date: Tue Dec 1 16:19:19 2009
New Revision: 30968
URL: http://svn.erp5.org?rev=30968&view=rev
Log:
revert r30956 because r30953 has been reverted as well
Modified:
erp5/trunk/products/ERP5Type/tests/testERP5Type.py
Modified: erp5/trunk/products/ERP5Type/tests/testERP5Type.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/testERP5Type.py?rev=30968&r1=30967&r2=30968&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/testERP5Type.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/testERP5Type.py [utf8] Tue Dec 1 16:19:19 2009
@@ -604,10 +604,12 @@
)
"""
- # We check that we raise exception when we associate the property sheet
+ self._addPropertySheet('Organisation', property_sheet_code=text)
+ folder = self.getOrganisationModule()
+ # We check that we raise exception when we create new object
from Products.ERP5Type.Utils import ConstraintNotFound
- self.assertRaises(ConstraintNotFound, self._addPropertySheet,
- 'Organisation', property_sheet_code=text)
+ organisation = self.assertRaises(ConstraintNotFound, folder.newContent,
+ portal_type='Organisation')
def test_11_valueAccessor(self, quiet=quiet, run=run_all_test):
"""
More information about the Erp5-report
mailing list