[Erp5-report] r11678 - /erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Dec 12 11:10:58 CET 2006
Author: aurel
Date: Tue Dec 12 11:10:56 2006
New Revision: 11678
URL: http://svn.erp5.org?rev=11678&view=rev
Log:
check workflows are backup with their subobjects
Modified:
erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
Modified: erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testBusinessTemplate.py?rev=11678&r1=11677&r2=11678&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/tests/testBusinessTemplate.py Tue Dec 12 11:10:56 2006
@@ -889,6 +889,16 @@
pw = self.getWorkflowTool()
workflow = pw._getOb(wf_id, None)
self.failUnless(workflow is None)
+
+ def stepCheckWorkflowBackup(self, sequence=None, sequence_list=None, **kw):
+ """
+ Check workflow and its subobjects has been well backup in portal trash
+ """
+ wf_id = sequence.get('workflow_id')
+ tt = self.getPortal()['portal_trash']
+ self.assertEqual(len(tt.objectIds()), 1)
+ bin = tt.objectValues()[0]
+ self.assertNotEqual(len(bin.portal_workflow_items[wf_id].objectIds()), 0)
# Actions
def stepCreateFirstAction(self, sequence=None, sequence_list=None, **kw):
@@ -2965,6 +2975,7 @@
CheckInstalledInstallationState \
CheckBuiltBuildingState \
CheckTrashBin \
+ CheckWorkflowBackup \
CheckPortalTypeExists \
CheckModuleExists \
CheckSkinFolderExists \
More information about the Erp5-report
mailing list