Back to index

plone3  3.1.7
Public Member Functions
plone.app.openid.tests.test_view.TestOpenIdView Class Reference
Inheritance diagram for plone.app.openid.tests.test_view.TestOpenIdView:
Inheritance graph
[legend]
Collaboration diagram for plone.app.openid.tests.test_view.TestOpenIdView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_DefaultConfig
def test_OpenIdInstalled
def testOnlyOpenIdInstalled
def afterSetUp
def pas
def pas_info

Detailed Description

Definition at line 6 of file test_view.py.


Member Function Documentation

Definition at line 7 of file base.py.

00007 
00008     def afterSetUp(self):
00009         # Since Zope 2.10.4 we need to install our package manually
00010         install_package(self.app, plone.openid, plone.openid.initialize)

Definition at line 12 of file base.py.

00012 
00013     def pas(self):
00014         return self.portal.acl_users

Definition at line 16 of file base.py.

00016 
00017     def pas_info(self):
00018         return self.pas.restrictedTraverse("@@pas_info")
00019 

Here is the caller graph for this function:

Definition at line 7 of file test_view.py.

00007 
00008     def test_DefaultConfig(self):
00009         pas_info=self.pas_info
00010         self.assertEquals(pas_info.hasOpenIDdExtractor(), False)
00011         self.assertEquals(pas_info.hasLoginPasswordExtractor(), True)

Here is the call graph for this function:

Definition at line 12 of file test_view.py.

00012 
00013     def test_OpenIdInstalled(self):
00014         self.portal.portal_quickinstaller.installProduct("plone.app.openid")
00015         pas_info=self.pas_info
00016         self.assertEquals(pas_info.hasOpenIDdExtractor(), True)
00017         self.assertEquals(pas_info.hasLoginPasswordExtractor(), True)

Here is the call graph for this function:

Definition at line 18 of file test_view.py.

00018 
00019     def testOnlyOpenIdInstalled(self):
00020         plugins=self.pas.plugins.listPlugins(IExtractionPlugin)
00021         for (id, plugin) in plugins:
00022             if ILoginPasswordExtractionPlugin.providedBy(plugin):
00023                 plugin.manage_activateInterfaces(interfaces=())
00024         self.portal.portal_quickinstaller.installProduct("plone.app.openid")
00025 
00026         pas_info=self.pas_info
00027         self.assertEquals(pas_info.hasOpenIDdExtractor(), True)
00028         self.assertEquals(pas_info.hasLoginPasswordExtractor(), False)
00029 

Here is the call graph for this function:


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