Ignore:
Timestamp:
2 Sep 2011, 11:43:39 (13 years ago)
Author:
Henrik Bettermann
Message:

Use w.s. test case for functional tests and remove unneeded code. The 'waeup.sirp.app.applicants logger must be removed before super is called.

Call clearSite in tearDown method if setSite has been used in the setUp method.

File:
1 edited

Legend:

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

    r6645 r6658  
    3030import shutil
    3131import tempfile
    32 from zope.app.testing.functional import FunctionalTestCase
    3332from zope.app.testing.functional import HTTPCaller as http
    3433from zope.component import createObject
     
    7776    def setUp(self):
    7877        super(PermissionTest, self).setUp()
    79         #remove_logger('waeup.sirp.app')
    80         self.old_loggers = get_all_loggers()
    8178        # Set up a complete university to have every page available...
    8279        app = University()
     
    104101        pass
    105102
    106     #def cleanUp(self):
    107     #    super(PermissionTest, self).cleanUp()
    108     #    clearSite()
    109     #    shutil.rmtree(self.dc_root)
    110 
    111103    def tearDown(self):
    112104        super(PermissionTest, self).tearDown()
    113         remove_new_loggers(self.old_loggers)
     105        clearSite()
    114106        shutil.rmtree(self.dc_root)
    115107        return
Note: See TracChangeset for help on using the changeset viewer.