Commit eb4c4710 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

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7576 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a5d216c0
...@@ -126,6 +126,10 @@ class TestERP5Type(ERP5TypeTestCase): ...@@ -126,6 +126,10 @@ class TestERP5Type(ERP5TypeTestCase):
self.assertEquals(o.getTitle(), 'toto') self.assertEquals(o.getTitle(), 'toto')
self.assertEquals(str(o.getId()), str(-123)) self.assertEquals(str(o.getId()), str(-123))
o = newTempOrganisation(portal,'aa')
o.edit(tutu='toto')
self.assertEquals(o.getProperty('tutu'), 'toto')
def test_04_CategoryAccessors(self): def test_04_CategoryAccessors(self):
portal = self.getPortal() portal = self.getPortal()
region_category = self.getPortal().portal_categories.region 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