From 2bf049c40f98a96b0bf35211d1a0f2e315d371c3 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Tue, 1 Dec 2009 09:47:47 +0000 Subject: [PATCH] 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 --- product/ERP5Type/tests/testConstraint.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/product/ERP5Type/tests/testConstraint.py b/product/ERP5Type/tests/testConstraint.py index 24e557832e..d174e999db 100644 --- a/product/ERP5Type/tests/testConstraint.py +++ b/product/ERP5Type/tests/testConstraint.py @@ -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( -- 2.30.9