Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
ResourceRegistries.tests.testKSSRegistry.TestToolSecurity Class Reference
Inheritance diagram for ResourceRegistries.tests.testKSSRegistry.TestToolSecurity:
Inheritance graph
Collaboration diagram for ResourceRegistries.tests.testKSSRegistry.TestToolSecurity:
Collaboration graph

List of all members.

Public Member Functions

def afterSetUp
def testRegistrationSecurity

Public Attributes


Detailed Description

Definition at line 131 of file

Member Function Documentation

Definition at line 133 of file

00134     def afterSetUp(self):
00135         self.tool = getattr(self.portal, KSSTOOLNAME)
00136         self.tool.clearResources()

Definition at line 137 of file

00138     def testRegistrationSecurity(self):
00139         self.assertRaises(Unauthorized, self.tool.restrictedTraverse,
00140                           'registerKineticStylesheet')
00141         self.assertRaises(Unauthorized, self.tool.restrictedTraverse,
00142                           'unregisterResource')
00143         self.setRoles(['Manager'])
00144         try:
00145             self.tool.restrictedTraverse('registerKineticStylesheet')
00146             self.tool.restrictedTraverse('unregisterResource')
00147         except Unauthorized:

Here is the call graph for this function:

Member Data Documentation

Definition at line 134 of file

The documentation for this class was generated from the following file: