Ignore:
Timestamp:
28 May 2011, 23:44:50 (14 years ago)
Author:
uli
Message:

Fix trailing whitespace.
Fix tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/test_permissions.py

    r4951 r6212  
    1212from zope.app.testing.functional import HTTPCaller as http
    1313from zope.component import createObject
     14from zope.component.hooks import setSite
    1415from zope.security.interfaces import Unauthorized
    1516from zope.testbrowser.testing import Browser
     
    4849    accessible.
    4950    """
    50    
     51
    5152    layer = FunctionalLayer
    52    
     53
    5354    def setUp(self):
    5455        super(PermissionTest, self).setUp()
     
    5657        # Set up a complete university to have every page available...
    5758        app = University()
     59        self.getRootFolder()['app'] = app
     60        setSite(self.getRootFolder()['app'])
    5861        self.dc_root = tempfile.mkdtemp()
    5962        app['datacenter'].setStoragePath(self.dc_root)
     
    7275        dept.certificates.addCertificate(cert)
    7376        cert.addCourseRef(course)
    74        
    75         self.getRootFolder()['app'] = app
     77
    7678        self.browser = Browser()
    7779        self.browser.handleErrors = False
     
    9092            return False
    9193        return
    92        
     94
    9395    def testUnauthenticatedUser(self):
    9496        for path in manager_pages:
Note: See TracChangeset for help on using the changeset viewer.