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

List of all members.

Public Member Functions

def afterSetUp
def testRegistrationSecurity

Public Attributes

 tool

Detailed Description

Definition at line 123 of file testJSRegistry.py.


Member Function Documentation

Definition at line 125 of file testJSRegistry.py.

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

Definition at line 129 of file testJSRegistry.py.

00129 
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:
00140             self.fail()
00141 

Here is the call graph for this function:


Member Data Documentation

Definition at line 126 of file testJSRegistry.py.


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