Back to index

plone3  3.1.7
base.py
Go to the documentation of this file.
00001 from OFS.Application import install_package
00002 import plone.openid
00003 from Products.PloneTestCase import PloneTestCase
00004 PloneTestCase.setupPloneSite()
00005 
00006 class OpenIdTestCase(PloneTestCase.PloneTestCase):
00007     def afterSetUp(self):
00008         # Since Zope 2.10.4 we need to install our package manually
00009         install_package(self.app, plone.openid, plone.openid.initialize)
00010 
00011     @property
00012     def pas(self):
00013         return self.portal.acl_users
00014 
00015     @property
00016     def pas_info(self):
00017         return self.pas.restrictedTraverse("@@pas_info")
00018 
00019 
00020 class OpenIdFunctionalTestCase(PloneTestCase.Functional, OpenIdTestCase):
00021     pass