[Erp5-report] r30956 - /erp5/trunk/products/ERP5Type/tests/testERP5Type.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Dec 1 10:52:19 CET 2009


Author: jerome
Date: Tue Dec  1 10:52:16 2009
New Revision: 30956

URL: http://svn.erp5.org?rev=30956&view=rev
Log:
ConstraintNotFound will now be raised when associating the property sheet to
the type information, not when creating new object

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=30956&r1=30955&r2=30956&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/testERP5Type.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/testERP5Type.py [utf8] Tue Dec  1 10:52:16 2009
@@ -604,12 +604,10 @@
       )
 
 """
-      self._addPropertySheet('Organisation', property_sheet_code=text)
-      folder = self.getOrganisationModule()
-      # We check that we raise exception when we create new object
+      # We check that we raise exception when we associate the property sheet
       from Products.ERP5Type.Utils import ConstraintNotFound
-      organisation =  self.assertRaises(ConstraintNotFound, folder.newContent,
-                                        portal_type='Organisation')
+      self.assertRaises(ConstraintNotFound, self._addPropertySheet,
+                        'Organisation', property_sheet_code=text)
 
     def test_11_valueAccessor(self, quiet=quiet, run=run_all_test):
       """




More information about the Erp5-report mailing list