Commit 2bf049c4 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add 'source_title' property that was removed but required for this test.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30955 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6c8179c2
......@@ -1442,6 +1442,19 @@ class TestConstraint(PropertySheetTestCase):
def test_PropertyTypeValidityWithUnauthorizedCategory(self):
person = self.portal.person_module.newContent(portal_type='Person')
assignment = person.newContent(portal_type='Assignment')
# add a source_title property on Assignment.
self._addPropertySheet('Assignment',
property_sheet_code=\
'''class TestPropertySheet:
_properties = (
{'id':'source_title',
'description':'The title of the source of this movement',
'type':'string',
'acquisition_base_category':('source',),
'acquisition_portal_type':('Category'),
'acquisition_accessor_id':'getTitle',
'mode':''},)
''')
self.assertEquals([], person.checkConsistency())
group3 = self.category_tool.restrictedTraverse(
'group/testGroup3', self.category_tool.group.newContent(
......
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