test for catalog clear and rebuild added.

svn path=/plone.app.discussion/trunk/; revision=27793
This commit is contained in:
Timo Stollenwerk 2009-07-03 11:22:21 +00:00
parent f2f70e908b
commit ac4953ebd6

View File

@ -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__)