[Erp5-report] r7577 - /erp5/trunk/products/ERP5Type/tests/testERP5Type.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jun 1 17:12:46 CEST 2006
Author: seb
Date: Thu Jun 1 17:12:43 2006
New Revision: 7577
URL: http://svn.erp5.org?rev=7577&view=rev
Log:
show to Thomas that edit with any property on temp objects and then use getProperty is working correctly also with integers, added some comments
Modified:
erp5/trunk/products/ERP5Type/tests/testERP5Type.py
Modified: erp5/trunk/products/ERP5Type/tests/testERP5Type.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/testERP5Type.py?rev=7577&r1=7576&r2=7577&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/testERP5Type.py (original)
+++ erp5/trunk/products/ERP5Type/tests/testERP5Type.py Thu Jun 1 17:12:43 2006
@@ -126,9 +126,15 @@
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()
More information about the Erp5-report
mailing list