From 01ee0a3cbd67ff94766e4cc6f2f2001bda15c363 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Wed, 4 Jan 2006 20:21:56 +0000
Subject: [PATCH] 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
---
 product/ERP5Type/tests/testERP5Type.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/product/ERP5Type/tests/testERP5Type.py b/product/ERP5Type/tests/testERP5Type.py
index 0973cbe7c4..d576b055de 100755
--- a/product/ERP5Type/tests/testERP5Type.py
+++ b/product/ERP5Type/tests/testERP5Type.py
@@ -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:
-- 
2.30.9