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
[legend]
Collaboration diagram for ResourceRegistries.tests.testCSSRegistry.TestToolSecurity:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def testRegistrationSecurity

Public Attributes

 tool

Detailed Description

Definition at line 158 of file testCSSRegistry.py.


Member Function Documentation

Definition at line 160 of file testCSSRegistry.py.

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

Definition at line 164 of file testCSSRegistry.py.

00164 
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:
00175             self.fail()
00176 

Here is the call graph for this function:


Member Data Documentation

Definition at line 161 of file testCSSRegistry.py.


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