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

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

Pyflakes and pep8 fixes #6

File size: 885 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']
16                 for item in self.portal.rolesOfPermission(PERM_NAME)
17                 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.