Changeset 6645 for main/waeup.sirp/trunk/src
- Timestamp:
- 28 Aug 2011, 20:08:09 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/tests/test_permissions.py
r6643 r6645 33 33 from zope.app.testing.functional import HTTPCaller as http 34 34 from zope.component import createObject 35 from zope.component.hooks import setSite 35 from zope.component.hooks import setSite, clearSite 36 36 from zope.security.interfaces import Unauthorized 37 37 from zope.testbrowser.testing import Browser 38 from waeup.sirp.testing import FunctionalLayer39 38 from waeup.sirp.app import University 39 from waeup.sirp.testing import ( 40 FunctionalLayer, FunctionalTestCase, get_all_loggers, remove_new_loggers, 41 remove_logger) 40 42 41 43 manager_pages = [ … … 75 77 def setUp(self): 76 78 super(PermissionTest, self).setUp() 77 79 #remove_logger('waeup.sirp.app') 80 self.old_loggers = get_all_loggers() 78 81 # Set up a complete university to have every page available... 79 82 app = University() … … 101 104 pass 102 105 103 def cleanUp(self): 104 super(ManagerTest, self).cleanUp() 106 #def cleanUp(self): 107 # super(PermissionTest, self).cleanUp() 108 # clearSite() 109 # shutil.rmtree(self.dc_root) 110 111 def tearDown(self): 112 super(PermissionTest, self).tearDown() 113 remove_new_loggers(self.old_loggers) 105 114 shutil.rmtree(self.dc_root) 115 return 106 116 107 117 def isAccessible(self, path):
Note: See TracChangeset for help on using the changeset viewer.