Changeset 6212 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 28 May 2011, 23:44:50 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/test_permissions.py
r4951 r6212 12 12 from zope.app.testing.functional import HTTPCaller as http 13 13 from zope.component import createObject 14 from zope.component.hooks import setSite 14 15 from zope.security.interfaces import Unauthorized 15 16 from zope.testbrowser.testing import Browser … … 48 49 accessible. 49 50 """ 50 51 51 52 layer = FunctionalLayer 52 53 53 54 def setUp(self): 54 55 super(PermissionTest, self).setUp() … … 56 57 # Set up a complete university to have every page available... 57 58 app = University() 59 self.getRootFolder()['app'] = app 60 setSite(self.getRootFolder()['app']) 58 61 self.dc_root = tempfile.mkdtemp() 59 62 app['datacenter'].setStoragePath(self.dc_root) … … 72 75 dept.certificates.addCertificate(cert) 73 76 cert.addCourseRef(course) 74 75 self.getRootFolder()['app'] = app 77 76 78 self.browser = Browser() 77 79 self.browser.handleErrors = False … … 90 92 return False 91 93 return 92 94 93 95 def testUnauthenticatedUser(self): 94 96 for path in manager_pages:
Note: See TracChangeset for help on using the changeset viewer.