From ac4953ebd617310d6dc33c2f8e74a2dcd23d2c93 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Fri, 3 Jul 2009 11:22:21 +0000 Subject: [PATCH] test for catalog clear and rebuild added. svn path=/plone.app.discussion/trunk/; revision=27793 --- plone/app/discussion/tests/test_catalog.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plone/app/discussion/tests/test_catalog.py b/plone/app/discussion/tests/test_catalog.py index 131a044..af5b131 100644 --- a/plone/app/discussion/tests/test_catalog.py +++ b/plone/app/discussion/tests/test_catalog.py @@ -218,5 +218,15 @@ class CommentCatalogTest(PloneTestCase): # object the comment was added to self.assertEquals(self.comment_brain.in_response_to, 'doc1') + def test_clear_and_rebuild_catalog(self): + # ToDo: This test fails if clear and rebuild is run + #self.catalog.clearFindAndRebuild() + brains = self.catalog.searchResults(portal_type = 'Discussion Item') + self.failUnless(brains) + #comment_brain = brains[0] + + + + def test_suite(): return unittest.defaultTestLoader.loadTestsFromName(__name__) \ No newline at end of file