Back to index

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

List of all members.

Public Member Functions

def afterSetUp
def testRegistrationSecurity

Public Attributes


Detailed Description

Definition at line 123 of file

Member Function Documentation

Definition at line 125 of file

00126     def afterSetUp(self):
00127         self.tool = getattr(self.portal, JSTOOLNAME)
00128         self.tool.clearResources()

Definition at line 129 of file

00130     def testRegistrationSecurity(self):
00131         self.assertRaises(Unauthorized, self.tool.restrictedTraverse,
00132                           'registerScript')
00133         self.assertRaises(Unauthorized, self.tool.restrictedTraverse,
00134                           'unregisterResource')
00135         self.setRoles(['Manager'])
00136         try:
00137             self.tool.restrictedTraverse('registerScript')
00138             self.tool.restrictedTraverse('unregisterResource')
00139         except Unauthorized:

Here is the call graph for this function:

Member Data Documentation

Definition at line 126 of file

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