Commit 9ad022f5 authored by Sebastien Robin's avatar Sebastien Robin

show to Thomas that edit with any property on temp objects and then use...

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
parent eb4c4710
......@@ -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
......
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