Commit c9d47855 authored by Nicolas Dumazet's avatar Nicolas Dumazet

test that BaseAccessorHolder is well attache to Base Category, Category Tool and

Property Sheet portal types


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43122 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ec5bc1e3
......@@ -445,6 +445,24 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
self.assertTrue(person_object.hasActivity())
self.tic()
# category tool, base categories, properties
# are likely to be handled specifically for accessor generation,
# since they are the first portal types to be loaded.
# double-check that they also have group accessors
category_tool = self.portal.portal_categories.aq_inner
method = getattr(category_tool, 'getRegionRelatedList', None)
self.assertNotEquals(None, method)
region_category = category_tool.region.aq_inner
method = getattr(region_category, 'getRegionRelatedList', None)
self.assertNotEquals(None, method)
property_sheet_tool = self.portal.portal_property_sheets
person_property_sheet = property_sheet_tool.Person.aq_inner
method = getattr(person_property_sheet, 'getRegionRelatedList', None)
self.assertNotEquals(None, method)
def test_05_setProperty(self):
"""
In this test we create a subobject (ie. a phone number)
......
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