Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.protect.tests.case.KeyringTestCase Class Reference
Inheritance diagram for plone.protect.tests.case.KeyringTestCase:
Inheritance graph
[legend]
Collaboration diagram for plone.protect.tests.case.KeyringTestCase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setUp
def tearDown

Public Attributes

 sm
 manager

Detailed Description

Definition at line 22 of file case.py.


Member Function Documentation

Reimplemented in plone.protect.tests.testAuthenticator.DecoratorTests, plone.protect.tests.testAuthenticator.VerifyTests, and plone.protect.tests.testAuthenticator.AuthenticatorTests.

Definition at line 23 of file case.py.

00023 
00024     def setUp(self):
00025         self.sm=getGlobalSiteManager()
00026         self.manager=MockKeyManager()
00027         self.sm.registerUtility(self.manager, provided=IKeyManager, event=False)
00028         # Tests modify the user object so we better make sure it is *our*
00029         # user object and not the built-in Anonymous User.
00030         newSecurityManager(None, User('dummy', 'secret', (), ()))

Definition at line 31 of file case.py.

00031 
00032     def tearDown(self):
00033         self.sm.unregisterUtility(self.manager, provided=IKeyManager)
00034         noSecurityManager()
00035 

Member Data Documentation

Definition at line 25 of file case.py.

Definition at line 24 of file case.py.


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