Commit e5cc609d authored by Jérome Perrin's avatar Jérome Perrin

added a simple test to edit a tempObject


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10620 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0f53f277
......@@ -931,6 +931,15 @@ class TestBase(ERP5TypeTestCase):
self.assertRaises(BadRequest, obj.setProperty,
'workflow_history', property_value)
def test_12_editTempObject(self, quiet=quiet, run=run_all_test):
"""Simple test to edit a temp object.
"""
portal = self.getPortal()
from Products.ERP5Type.Document import newTempOrganisation
tmp_object = newTempOrganisation(portal, "a_wonderful_id")
tmp_object.edit(title='new title')
self.assertEquals('new title', tmp_object.getTitle())
class TestERP5PropertyManager(unittest.TestCase):
"""Tests for ERP5PropertyManager.
"""
......
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