Changeset 6645


Ignore:
Timestamp:
28 Aug 2011, 20:08:09 (13 years ago)
Author:
Henrik Bettermann
Message:

Make tests work (failure in test test_storage_move). I don't know if this is really the best solution. Uli, please check.

File:
1 edited

Legend:

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

    r6643 r6645  
    3333from zope.app.testing.functional import HTTPCaller as http
    3434from zope.component import createObject
    35 from zope.component.hooks import setSite
     35from zope.component.hooks import setSite, clearSite
    3636from zope.security.interfaces import Unauthorized
    3737from zope.testbrowser.testing import Browser
    38 from waeup.sirp.testing import FunctionalLayer
    3938from waeup.sirp.app import University
     39from waeup.sirp.testing import (
     40    FunctionalLayer, FunctionalTestCase, get_all_loggers, remove_new_loggers,
     41    remove_logger)
    4042
    4143manager_pages = [
     
    7577    def setUp(self):
    7678        super(PermissionTest, self).setUp()
    77 
     79        #remove_logger('waeup.sirp.app')
     80        self.old_loggers = get_all_loggers()
    7881        # Set up a complete university to have every page available...
    7982        app = University()
     
    101104        pass
    102105
    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)
    105114        shutil.rmtree(self.dc_root)
     115        return
    106116
    107117    def isAccessible(self, path):
Note: See TracChangeset for help on using the changeset viewer.