Ignore:
Timestamp:
5 May 2023, 06:06:34 (21 months ago)
Author:
Henrik Bettermann
Message:

New dates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_browser.py

    r16603 r17404  
    221221        open(path, 'wb').write(self.browser.contents)
    222222        print "Sample PDF UG admission_slip.pdf written to %s" % path
     223
     224        self.certificate.code = 'MBBS'
     225        self.browser.open(self.student_path)
     226        self.browser.getLink("Base Data").click()
     227        self.browser.getLink("Download admission letter").click()
     228        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     229        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     230        path = os.path.join(samples_dir(), 'mbbs_admission_slip.pdf')
     231        open(path, 'wb').write(self.browser.contents)
     232        print "Sample PDF mbbs_admission_slip.pdf written to %s" % path
     233
     234        self.certificate.code = 'LAW'
     235        self.browser.open(self.student_path)
     236        self.browser.getLink("Base Data").click()
     237        self.browser.getLink("Download admission letter").click()
     238        self.assertEqual(self.browser.headers['Status'], '200 Ok')
     239        self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     240        path = os.path.join(samples_dir(), 'law_admission_slip.pdf')
     241        open(path, 'wb').write(self.browser.contents)
     242        print "Sample PDF law_admission_slip.pdf written to %s" % path
     243
    223244        self.certificate.study_mode = 'pg_ft'
    224245        self.browser.open(self.student_path)
Note: See TracChangeset for help on using the changeset viewer.