Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes
CMFCore.tests.base.testcase.SecurityTest Class Reference
Inheritance diagram for CMFCore.tests.base.testcase.SecurityTest:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.tests.base.testcase.SecurityTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setUp
def tearDown

Public Attributes

 app
 root
 REQUEST
 RESPONSE

Static Public Attributes

 layer = ZopeLite

Private Attributes

 _policy
 _oldPolicy

Detailed Description

Definition at line 103 of file testcase.py.


Member Function Documentation

Reimplemented from CMFCore.tests.base.testcase.TransactionalTest.

Definition at line 105 of file testcase.py.

00105 
00106     def setUp(self):
00107         TransactionalTest.setUp(self)
00108         self._policy = PermissiveSecurityPolicy()
00109         self._oldPolicy = setSecurityPolicy(self._policy)
00110         newSecurityManager(None, AnonymousUser().__of__(self.app.acl_users))

Reimplemented from CMFCore.tests.base.testcase.TransactionalTest.

Definition at line 111 of file testcase.py.

00111 
00112     def tearDown(self):
00113         noSecurityManager()
00114         setSecurityPolicy(self._oldPolicy)
00115         TransactionalTest.tearDown(self)


Member Data Documentation

Definition at line 108 of file testcase.py.

Definition at line 107 of file testcase.py.

Definition at line 92 of file testcase.py.

Definition at line 88 of file testcase.py.

Definition at line 93 of file testcase.py.

Definition at line 94 of file testcase.py.

Definition at line 92 of file testcase.py.


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