Back to index

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

List of all members.

Public Member Functions

def afterSetUp
def testRegistrationSecurity

Public Attributes


Detailed Description

Definition at line 158 of file

Member Function Documentation

Definition at line 160 of file

00161     def afterSetUp(self):
00162         self.tool = getattr(self.portal, CSSTOOLNAME)
00163         self.tool.clearResources()

Definition at line 164 of file

00165     def testRegistrationSecurity(self):
00166         self.assertRaises(Unauthorized, self.tool.restrictedTraverse,
00167                           'registerStylesheet')
00168         self.assertRaises(Unauthorized, self.tool.restrictedTraverse,
00169                           'unregisterResource')
00170         self.setRoles(['Manager'])
00171         try:
00172             self.tool.restrictedTraverse('registerStylesheet')
00173             self.tool.restrictedTraverse('unregisterResource')
00174         except Unauthorized:

Here is the call graph for this function:

Member Data Documentation

Definition at line 161 of file

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