Commit 07cd8e30 authored by Nicolas Dumazet's avatar Nicolas Dumazet

clear doubts on accessor generation if a temp portal type generates accessors first


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39872 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5949d33b
......@@ -190,6 +190,20 @@ class TestPortalTypeClass(ERP5TypeTestCase):
type_class='Folder')
newDocument(portal_type='Folder')
def testPropertyGenerationOnTempPortalType(self):
portal = self.portal
temp = portal.organisation_module.newContent('temp_portal_type',
'Organisation',
temp_object=True)
temp.setCorporateName('foobar')
synchronizeDynamicModules(portal, force=True)
# check what is happening if aq_dynamic is called on the
# temp portal type first
accessor = temp._aq_dynamic('getCorporateName')
self.failIfEqual(accessor, None)
self.assertEquals(accessor(), 'foobar')
self.assertEquals(temp.__class__.__module__, 'erp5.temp_portal_type')
class TestZodbPropertySheet(ERP5TypeTestCase):
"""
......
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