- Timestamp:
- 25 May 2021, 06:20:09 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_browser.py
r16409 r16492 190 190 print "Sample PDF course_registration_clearance.pdf written to %s" % path 191 191 192 def test_student_admission_letter (self):192 def test_student_admission_letters(self): 193 193 self.certificate.study_mode = 'ug_ft' 194 194 # Student cant login if their password is not set … … 228 228 open(path, 'wb').write(self.browser.contents) 229 229 print "Sample PDF PG admission_slip.pdf written to %s" % path 230 self.certificate.study_mode = 'ug_pt' 231 self.browser.open(self.student_path) 232 self.browser.getLink("Base Data").click() 233 self.browser.getLink("Download admission letter").click() 234 self.assertEqual(self.browser.headers['Status'], '200 Ok') 235 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 236 path = os.path.join(samples_dir(), 'pt_admission_slip.pdf') 237 open(path, 'wb').write(self.browser.contents) 238 print "Sample PDF PT admission_slip.pdf written to %s" % path
Note: See TracChangeset for help on using the changeset viewer.