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

List of all members.

Public Member Functions

def afterSetUp
def testRegistrationSecurity

Public Attributes

 tool

Detailed Description

Definition at line 131 of file testKSSRegistry.py.


Member Function Documentation

Definition at line 133 of file testKSSRegistry.py.

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

Definition at line 137 of file testKSSRegistry.py.

00137 
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:
00148             self.fail()
00149 

Here is the call graph for this function:


Member Data Documentation

Definition at line 134 of file testKSSRegistry.py.


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