[Erp5-report] r10620 - /erp5/trunk/products/ERP5/tests/testBase.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sun Oct 8 23:09:12 CEST 2006
Author: jerome
Date: Sun Oct 8 23:09:08 2006
New Revision: 10620
URL: http://svn.erp5.org?rev=10620&view=rev
Log:
added a simple test to edit a tempObject
Modified:
erp5/trunk/products/ERP5/tests/testBase.py
Modified: erp5/trunk/products/ERP5/tests/testBase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testBase.py?rev=10620&r1=10619&r2=10620&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBase.py (original)
+++ erp5/trunk/products/ERP5/tests/testBase.py Sun Oct 8 23:09:08 2006
@@ -931,6 +931,15 @@
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.
"""
More information about the Erp5-report
mailing list