source: products/quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/testQPloneCommentsPermission.py @ 1222

Last change on this file since 1222 was 880, checked in by mylan, 17 years ago

Up version.

File size: 865 bytes
Line 
1#
2# Test 'Moderate Discussion' permission
3#
4
5from Products.CMFDefault.DiscussionItem import DiscussionItemContainer
6
7from base import getToolByName, TestCase
8from config import *
9
10
11class TestPermission(TestCase):
12
13    def afterSetUp(self):
14        self.loginAsPortalOwner()
15
16    def test_install_moderate_discussion_permission(self):
17        roles = [item['name'] for item in self.portal.rolesOfPermission(PERM_NAME) if item['selected'] == 'SELECTED']
18        self.failUnless( roles != [], '%s not installed'%PERM_NAME)
19
20    def test_deleteReply_permission(self):
21        #dic = DiscussionItemContainer()
22        #dic.createReply('Title', 'Text')
23        pass
24
25    def test_manager_moderation(self):
26        pass
27
28
29def test_suite():
30    from unittest import TestSuite, makeSuite
31    suite = TestSuite()
32    suite.addTest(makeSuite(TestPermission))
33    return suite
Note: See TracBrowser for help on using the repository browser.