Commit c71305c9 authored by Jérome Perrin's avatar Jérome Perrin

ConstraintNotFound will now be raised when associating the property sheet to

the type information, not when creating new object


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30956 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2bf049c4
......@@ -604,12 +604,10 @@ class TestPropertySheet:
)
"""
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):
"""
......
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