Changeset 9331


Ignore:
Timestamp:
12 Oct 2012, 05:50:03 (12 years ago)
Author:
Henrik Bettermann
Message:

Add regression test for catching ghost dict errors.

File:
1 edited

Legend:

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

    r9306 r9331  
    413413        self.assertEqual(self.student.current_verdict, 'A')
    414414        return
     415
     416    def test_studylevelmanagepage(self):
     417        studylevel = StudentStudyLevel()
     418        studylevel.level = 100
     419        cert = self.app['faculties']['fac1']['dep1'].certificates['CERT1']
     420        self.student['studycourse'].addStudentStudyLevel(
     421            cert,studylevel)
     422        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     423        self.browser.open(self.studycourse_path + '/100/manage')
     424        self.assertEqual(self.browser.url, self.studycourse_path + '/100/manage')
     425        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    415426
    416427    def test_basic_auth(self):
Note: See TracChangeset for help on using the changeset viewer.