From 9ad022f5659651645592aae1aee708731b19e897 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Thu, 1 Jun 2006 15:12:43 +0000 Subject: [PATCH] show to Thomas that edit with any property on temp objects and then use getProperty is working correctly also with integers, added some comments git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7577 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/testERP5Type.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/product/ERP5Type/tests/testERP5Type.py b/product/ERP5Type/tests/testERP5Type.py index 10dbbfb1b1..63f330027f 100644 --- a/product/ERP5Type/tests/testERP5Type.py +++ b/product/ERP5Type/tests/testERP5Type.py @@ -126,10 +126,16 @@ class TestERP5Type(ERP5TypeTestCase): self.assertEquals(o.getTitle(), 'toto') self.assertEquals(str(o.getId()), str(-123)) - o = newTempOrganisation(portal,'aa') + # Try to edit with any property and then get it with getProperty + o = newTempOrganisation(portal,'a') o.edit(tutu='toto') self.assertEquals(o.getProperty('tutu'), 'toto') + # Same thing with an integer + o = newTempOrganisation(portal,'b') + o.edit(tata=123) + self.assertEquals(o.getProperty('tata'), 123) + def test_04_CategoryAccessors(self): portal = self.getPortal() region_category = self.getPortal().portal_categories.region -- 2.30.9