Ignore:
Timestamp:
2 Feb 2016, 15:58:21 (9 years ago)
Author:
Henrik Bettermann
Message:

Further customize signatures on CustomExportPDFCourseRegistrationSlip.

File:
1 edited

Legend:

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

    r13523 r13647  
    535535        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    536536        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     537        path = os.path.join(samples_dir(), 'ft_course_registration_slip.pdf')
     538        open(path, 'wb').write(self.browser.contents)
     539        print "Sample PDF ft_course_registration_slip.pdf written to %s" % path
     540
     541        self.certificate.study_mode = 'ug_pt'
     542        self.browser.open(self.student_path + '/studycourse/100')
     543        self.browser.getLink("Download course registration slip").click()
     544        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     545        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     546        path = os.path.join(samples_dir(), 'pt_course_registration_slip.pdf')
     547        open(path, 'wb').write(self.browser.contents)
     548        print "Sample PDF pt_course_registration_slip.pdf written to %s" % path
     549
     550        self.certificate.study_mode = 'special_pg_ft'
     551        self.browser.open(self.student_path + '/studycourse/100')
     552        self.browser.getLink("Download course registration slip").click()
     553        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     554        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     555        path = os.path.join(samples_dir(), 'pg_course_registration_slip.pdf')
     556        open(path, 'wb').write(self.browser.contents)
     557        print "Sample PDF pg_course_registration_slip.pdf written to %s" % path
    537558
    538559    def test_student_clearance(self):
Note: See TracChangeset for help on using the changeset viewer.