Changeset 6658 for main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests
- Timestamp:
- 2 Sep 2011, 11:43:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_root.py
r6578 r6658 43 43 44 44 45 46 47 45 class FakeSite(dict): 48 46 pass … … 53 51 54 52 def setUp(self): 53 remove_logger('waeup.sirp.app.applicants') 55 54 super(ApplicantsRootTestCase, self).setUp() 56 remove_logger('waeup.sirp.app.applicants')57 self.old_loggers = get_all_loggers()58 55 # Setup a sample site for each test 59 60 56 # Prepopulate the ZODB... 61 57 app = University() … … 63 59 self.app = self.getRootFolder()['app'] 64 60 setSite(self.app) 65 66 61 self.dc_root = tempfile.mkdtemp() 67 62 app['datacenter'].setStoragePath(self.dc_root) 68 69 63 return 70 64 71 65 def tearDown(self): 72 66 super(ApplicantsRootTestCase, self).tearDown() 73 remove_new_loggers(self.old_loggers)74 67 shutil.rmtree(self.dc_root) 68 clearSite() 75 69 return 76 70
Note: See TracChangeset for help on using the changeset viewer.