From 8a6ab7161dcc5f91e39912b7889ac838e41aaca1 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Wed, 1 Jul 2009 20:58:31 +0000 Subject: [PATCH] remove CatalogTest from test_comments. svn path=/plone.app.discussion/trunk/; revision=27767 --- plone/app/discussion/tests/test_comment.py | 42 ---------------------- 1 file changed, 42 deletions(-) diff --git a/plone/app/discussion/tests/test_comment.py b/plone/app/discussion/tests/test_comment.py index 5177fd8..2759894 100644 --- a/plone/app/discussion/tests/test_comment.py +++ b/plone/app/discussion/tests/test_comment.py @@ -116,48 +116,6 @@ class CommentTest(PloneTestCase): # TODO: is this correct? Redirect ist 301 self.assertEquals(200, self.app.REQUEST.response.getStatus()) -class CatalogTest(PloneTestCase): - - layer = DiscussionLayer - - def afterSetUp(self): - # First we need to create some content. - self.loginAsPortalOwner() - typetool = self.portal.portal_types - typetool.constructContent('Document', self.portal, 'doc1') - - self.catalog = getToolByName(self.portal, 'portal_catalog') - - conversation = IConversation(self.portal.doc1) - - comment1 = createObject('plone.Comment') - comment1.title = 'Comment 1' - comment1.text = 'Comment text' - comment1.creator = 'Jim' - - new_comment1_id = conversation.addComment(comment1) - self.comment_id = new_comment1_id - - self.comment = self.portal.doc1.restrictedTraverse('++conversation++default/%s' % new_comment1_id) - - brains = self.catalog.searchResults( - path = {'query' : '/'.join(self.comment.getPhysicalPath()) }) - self.comment_brain = brains[0] - - def test_title(self): - self.assertEquals(self.comment_brain.Title, 'Comment 1') - - def test_type(self): - self.assertEquals(self.comment_brain.portal_type, 'Discussion Item') - self.assertEquals(self.comment_brain.meta_type, 'Discussion Item') - self.assertEquals(self.comment_brain.Type, 'Discussion Item') - - def test_review_state(self): - self.assertEquals(self.comment_brain.review_state, 'published') - - def test_creator(self): - self.assertEquals(self.comment_brain.Creator, 'Jim') - class RepliesTest(PloneTestCase): # test the IReplies adapter on a comment