Commit 61ac40c4 authored by Jérome Perrin's avatar Jérome Perrin

added one more test for the simple case of deleting an object.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11004 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f3a6d288
......@@ -1032,3 +1032,15 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
getattr(self.getCatalogTool().getSQLCatalog(),
method).connection_id)
def test_DeleteObject(self, quiet=quiet, run=run_all_test):
"""Simple test to exercise object deletion
"""
if not run: return
folder = self.getOrganisationModule()
ob = folder.newContent()
get_transaction().commit()
self.tic()
folder.manage_delObjects([ob.getId()])
get_transaction().commit()
self.tic()
self.assertEquals(0, len(folder.searchFolder()))
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