[Erp5-report] r30955 - /erp5/trunk/products/ERP5Type/tests/testConstraint.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Dec 1 10:47:49 CET 2009
Author: kazuhiko
Date: Tue Dec 1 10:47:47 2009
New Revision: 30955
URL: http://svn.erp5.org?rev=30955&view=rev
Log:
add 'source_title' property that was removed but required for this test.
Modified:
erp5/trunk/products/ERP5Type/tests/testConstraint.py
Modified: erp5/trunk/products/ERP5Type/tests/testConstraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/testConstraint.py?rev=30955&r1=30954&r2=30955&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/testConstraint.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/testConstraint.py [utf8] Tue Dec 1 10:47:47 2009
@@ -1442,6 +1442,19 @@
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(
More information about the Erp5-report
mailing list