Ignore:
Timestamp:
13 Apr 2015, 14:48:39 (10 years ago)
Author:
Henrik Bettermann
Message:

Revert changes from last revision. This restriction does not make sense for all portals. We need this only for Uniben.

File:
1 edited

Legend:

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

    r12853 r12854  
    24782478        self.assertTrue(
    24792479            self.student['studycourse']['200']['COURSE1'].carry_over is True)
     2480        # Students can open the pdf course registration slip
     2481        self.browser.open(self.student_path + '/studycourse/200')
     2482        self.browser.getLink("Download course registration slip").click()
     2483        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     2484        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
    24802485        # Students can remove course tickets
    24812486        self.browser.open(self.student_path + '/studycourse/200/edit')
     
    25122517        self.assertTrue('K1000000 - students.browser.StudyLevelEditFormPage - '
    25132518            'K1000000 - added: COURSE1|200|2004' in logcontent)
    2514         # Students can't open the pdf course registration slip right
    2515         self.assertFalse(
    2516             'Download course registration slip' in self.browser.contents)
    2517         self.browser.open(
    2518             self.student_path + '/studycourse/200/course_registration_slip.pdf')
    2519         self.assertTrue('Forbidden' in self.browser.contents)
    25202519        # Course list can be registered
    2521         self.browser.open(self.student_path + '/studycourse/200/edit')
    25222520        self.browser.getControl("Register course list").click()
    25232521        self.assertTrue('Course list has been registered' in self.browser.contents)
    25242522        self.assertEqual(self.student.state, 'courses registered')
    2525         # and students can open the pdf course registration slip right
    2526         self.browser.getLink("Download course registration slip").click()
    2527         self.assertEqual(self.browser.headers['Status'], '200 Ok')
    2528         self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
    2529         # Students can't view the download link if current_session
    2530         # does not correspond with level_session.
    2531         self.student['studycourse'].current_level = 300
    2532         self.browser.open(self.student_path + '/studycourse/200/edit')
    2533         self.assertFalse(
    2534             'Download course registration slip' in self.browser.contents)
    2535         self.assertFalse(
    2536             'Download course registration slip' in self.browser.contents)
    2537         self.browser.open(
    2538             self.student_path + '/studycourse/200/course_registration_slip.pdf')
    2539         self.assertTrue('Forbidden' in self.browser.contents)
    25402523        # Students can view the transcript
    25412524        #self.browser.open(self.studycourse_path)
Note: See TracChangeset for help on using the changeset viewer.