Commit f0152ac5 authored by Aurel's avatar Aurel

check if trash folder are not indexable


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4766 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5c5adaa0
...@@ -160,7 +160,7 @@ class TestTrashTool(ERP5TypeTestCase): ...@@ -160,7 +160,7 @@ class TestTrashTool(ERP5TypeTestCase):
obj = trashbin_objects_list[0] obj = trashbin_objects_list[0]
self.assertEqual(obj.getId(), 'portal_categories_items') self.assertEqual(obj.getId(), 'portal_categories_items')
self.assertEqual(obj.getPortalType(), 'Trash Folder') self.assertEqual(obj.getPortalType(), 'Trash Folder')
# self.assertEqual(obj.isIndexable, 0) self.assertEqual(obj.isIndexable, 0)
# get backup base category # get backup base category
cat_objects_list = list(obj.objectValues()) cat_objects_list = list(obj.objectValues())
self.assertEqual(len(cat_objects_list), 1) self.assertEqual(len(cat_objects_list), 1)
...@@ -186,12 +186,12 @@ class TestTrashTool(ERP5TypeTestCase): ...@@ -186,12 +186,12 @@ class TestTrashTool(ERP5TypeTestCase):
trashbin_objects_list = list(trashbin.objectValues()) trashbin_objects_list = list(trashbin.objectValues())
self.failUnless(len(trashbin_objects_list) > 0) self.failUnless(len(trashbin_objects_list) > 0)
self.assertEqual(len(trashbin_objects_list), 1) self.assertEqual(len(trashbin_objects_list), 1)
object = trashbin_objects_list[0] obj = trashbin_objects_list[0]
self.assertEqual(object.getId(), 'portal_categories_items') self.assertEqual(obj.getId(), 'portal_categories_items')
self.assertEqual(object.getPortalType(), 'Trash Folder') self.assertEqual(obj.getPortalType(), 'Trash Folder')
# self.assertEqual(obj.isIndexable, 0) self.assertEqual(obj.isIndexable, 0)
# get base category backup # get base category backup
cat_objects_list = list(object.objectValues()) cat_objects_list = list(obj.objectValues())
self.assertEqual(len(cat_objects_list), 1) self.assertEqual(len(cat_objects_list), 1)
cat_object = cat_objects_list[0] cat_object = cat_objects_list[0]
bc_id = sequence.get('bc_id') bc_id = sequence.get('bc_id')
......
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