Ignore:
Timestamp:
5 Jan 2013, 17:02:17 (12 years ago)
Author:
Henrik Bettermann
Message:

Improve test to check if really all referring certificate courses are removed after removing a course.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/tests/test_browser.py

    r9822 r9827  
    320320
    321321    def test_remove_course(self):
    322         # A certificate course will be automatically removed when
     322        # We add a second certificate course which refers
     323        # to the same course but at a different level.
     324        self.app['faculties']['fac1']['dep1'].certificates['CERT1'].addCertCourse(
     325            self.course, level=210)
     326        # Both certificate courses will be automatically removed when
    323327        # the corresponding course is removed.
    324328        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    325329        self.assertTrue('COURSE1_100' in self.app[
     330            'faculties']['fac1']['dep1'].certificates['CERT1'])
     331        self.assertTrue('COURSE1_210' in self.app[
    326332            'faculties']['fac1']['dep1'].certificates['CERT1'])
    327333        self.browser.open('http://localhost/app/faculties/fac1/dep1/manage')
     
    331337        self.assertFalse('COURSE1_100' in self.app[
    332338            'faculties']['fac1']['dep1'].certificates['CERT1'])
    333         return
     339        self.assertFalse('COURSE1_210' in self.app[
     340            'faculties']['fac1']['dep1'].certificates['CERT1'])
     341        return
Note: See TracChangeset for help on using the changeset viewer.