From f0152ac5bbb433d54d5979d63dc9e3aa9477d75a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Mon, 19 Dec 2005 09:53:28 +0000
Subject: [PATCH] check if trash folder are not indexable

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4766 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testTrashTool.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/product/ERP5/tests/testTrashTool.py b/product/ERP5/tests/testTrashTool.py
index f8b8df19d1..53d298380d 100755
--- a/product/ERP5/tests/testTrashTool.py
+++ b/product/ERP5/tests/testTrashTool.py
@@ -160,7 +160,7 @@ class TestTrashTool(ERP5TypeTestCase):
     obj = trashbin_objects_list[0]
     self.assertEqual(obj.getId(), 'portal_categories_items')
     self.assertEqual(obj.getPortalType(), 'Trash Folder')
-    #    self.assertEqual(obj.isIndexable, 0)
+    self.assertEqual(obj.isIndexable, 0)
     # get backup base category
     cat_objects_list = list(obj.objectValues())
     self.assertEqual(len(cat_objects_list), 1)
@@ -186,12 +186,12 @@ class TestTrashTool(ERP5TypeTestCase):
     trashbin_objects_list = list(trashbin.objectValues())
     self.failUnless(len(trashbin_objects_list) > 0)
     self.assertEqual(len(trashbin_objects_list), 1)
-    object = trashbin_objects_list[0]
-    self.assertEqual(object.getId(), 'portal_categories_items')    
-    self.assertEqual(object.getPortalType(), 'Trash Folder')
-    #    self.assertEqual(obj.isIndexable, 0)
+    obj = trashbin_objects_list[0]
+    self.assertEqual(obj.getId(), 'portal_categories_items')    
+    self.assertEqual(obj.getPortalType(), 'Trash Folder')
+    self.assertEqual(obj.isIndexable, 0)
     # get base category backup
-    cat_objects_list = list(object.objectValues())
+    cat_objects_list = list(obj.objectValues())
     self.assertEqual(len(cat_objects_list), 1)
     cat_object = cat_objects_list[0]
     bc_id = sequence.get('bc_id')
-- 
2.30.9