Ignore:
Timestamp:
7 May 2019, 06:38:53 (6 years ago)
Author:
Henrik Bettermann
Message:

Show gpa on course result slip.

File:
1 edited

Legend:

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

    r15371 r15401  
    480480        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    481481        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     482        path = os.path.join(samples_dir(), 'course_registration_slip.pdf')
     483        open(path, 'wb').write(self.browser.contents)
     484        print "Sample PDF course_registration_slip.pdf written to %s" % path
     485       # Students can always download pdf course result slip
     486        self.browser.open(
     487            self.student_path + '/studycourse/100/course_result_slip.pdf')
     488        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     489        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     490        path = os.path.join(samples_dir(), 'course_result_slip.pdf')
     491        open(path, 'wb').write(self.browser.contents)
     492        print "Sample PDF course_result_slip.pdf written to %s" % path
    482493
    483494    def test_get_returning_data(self):
Note: See TracChangeset for help on using the changeset viewer.