Back to index

plone3  3.1.7
base.py
Go to the documentation of this file.
00001 from Products.Five.testbrowser import Browser
00002 from Products.PloneTestCase import PloneTestCase
00003 PloneTestCase.setupPloneSite()
00004 
00005 class RedirectorTestCase(PloneTestCase.PloneTestCase):
00006     pass
00007 
00008 class RedirectorFunctionalTestCase(PloneTestCase.FunctionalTestCase):
00009 
00010     def getBrowser(self, loggedIn=True):
00011         """ instantiate and return a testbrowser for convenience """
00012         browser = Browser()
00013         if loggedIn:
00014             user = PloneTestCase.default_user
00015             pwd = PloneTestCase.default_password
00016             browser.addHeader('Authorization', 'Basic %s:%s' % (user, pwd))
00017         return browser
00018