filter tabs removed from moderation view;

svn path=/plone.app.discussion/trunk/; revision=32355
This commit is contained in:
Timo Stollenwerk
2009-12-08 11:19:26 +00:00
parent 094f5955a4
commit 47cba8797f
5 changed files with 20 additions and 158 deletions
@@ -77,26 +77,6 @@ class ModerationViewTest(PloneTestCase):
('simple_publication_workflow,'))
self.assertEquals(self.view.moderation_enabled(), False)
def test_comments_all(self):
self.failUnless(self.view.comments_all())
self.assertEquals(len(self.view.comments_all()), 3)
def test_comments_pending(self):
self.wf_tool.getInfoFor(self.comment1, 'review_state')
self.failUnless(self.view.comments_pending())
self.assertEquals(len(self.view.comments_pending()), 3)
self.portal.portal_workflow.doActionFor(self.comment1,
action='publish')
#self.comment1.reindexObject()
#self.assertEquals(len(self.view.comments_pending()), 2)
def test_comments_published(self):
self.assertEquals(len(self.view.comments_published()), 0)
self.wf_tool.doActionFor(self.comment1, action='publish')
#self.assertEquals(len(self.view.comments_published()), 1)
def test_comments_spam(self):
self.view.comments_spam()
def test_suite():
return unittest.defaultTestLoader.loadTestsFromName(__name__)