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/students/tests/test_container.py

    r6641 r6658  
    3939
    4040    def setUp(self):
     41        remove_logger('waeup.sirp.app.students')
    4142        super(StudentsContainerTestCase, self).setUp()
    42         remove_logger('waeup.sirp.app.students')
    43         self.old_loggers = get_all_loggers()
    4443        # Setup a sample site for each test
    45 
    4644        # Prepopulate the ZODB...
    4745        app = University()
     
    4947        self.app = self.getRootFolder()['app']
    5048        setSite(self.app)
    51 
    5249        self.dc_root = tempfile.mkdtemp()
    5350        app['datacenter'].setStoragePath(self.dc_root)
     
    5653    def tearDown(self):
    5754        super(StudentsContainerTestCase, self).tearDown()
    58         remove_new_loggers(self.old_loggers)
     55        clearSite()
    5956        shutil.rmtree(self.dc_root)
    6057        return
Note: See TracChangeset for help on using the changeset viewer.