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

Last change on this file since 3112 was 3112, checked in by kroman0, 11 years ago

Merged fixes for pyflakes and pylint

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