Commit 01ee0a3c authored by Sebastien Robin's avatar Sebastien Robin

add one test in order to proove that setProperty does not call the setter of...

add one test in order to proove that setProperty does not call the setter of the parent even if the setter is not define on an object


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5020 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6659fcba
......@@ -190,6 +190,19 @@ class TestERP5Type(ERP5TypeTestCase):
person_object.setRegionValue(None)
checkRelationUnset(self)
def test_04_setProperty(self):
portal = self.getPortal()
module = self.getOrganisationModule()
organisation = module.newContent(id='1', portal_type='Organisation')
organisation.setDefaultTelephoneText('55 55 5555')
organisation.setCorporateName('Nexedi')
organisation.default_telephone.setProperty('corporate_name','Toto')
self.assertEquals(organisation.corporate_name,'Nexedi')
self.assertEquals(organisation.default_telephone.corporate_name,'Toto')
if __name__ == '__main__':
framework()
else:
......
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