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: ...@@ -604,12 +604,10 @@ class TestPropertySheet:
) )
""" """
self._addPropertySheet('Organisation', property_sheet_code=text) # We check that we raise exception when we associate the property sheet
folder = self.getOrganisationModule()
# We check that we raise exception when we create new object
from Products.ERP5Type.Utils import ConstraintNotFound from Products.ERP5Type.Utils import ConstraintNotFound
organisation = self.assertRaises(ConstraintNotFound, folder.newContent, self.assertRaises(ConstraintNotFound, self._addPropertySheet,
portal_type='Organisation') 'Organisation', property_sheet_code=text)
def test_11_valueAccessor(self, quiet=quiet, run=run_all_test): 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