From 66ada6e53cf32de14e898936ea6fcebf178af7bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 1 Dec 2009 15:19:19 +0000 Subject: [PATCH] revert r30956 because r30953 has been reverted as well git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30968 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/testERP5Type.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/product/ERP5Type/tests/testERP5Type.py b/product/ERP5Type/tests/testERP5Type.py index 0fef646390..e6d3a97362 100644 --- a/product/ERP5Type/tests/testERP5Type.py +++ b/product/ERP5Type/tests/testERP5Type.py @@ -604,10 +604,12 @@ class TestPropertySheet: ) """ - # 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): """ -- 2.30.9