- Timestamp:
- 30 Oct 2020, 12:36:49 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_browser.py
r16264 r16292 158 158 # Students can open base data slip 159 159 # (no button available in base package) 160 pdf_url = '%s/ personal_slip.pdf' % self.student_path160 pdf_url = '%s/course_registration_clearance.pdf' % self.student_path 161 161 self.browser.open(pdf_url) 162 162 self.assertEqual(self.browser.headers['Status'], '200 Ok') 163 163 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 164 path = os.path.join(samples_dir(), ' personal_slip.pdf')164 path = os.path.join(samples_dir(), 'course_registration_clearance.pdf') 165 165 open(path, 'wb').write(self.browser.contents) 166 print "Sample PDF personal_slip.pdf written to %s" % path166 print "Sample PDF course_registration_clearance.pdf written to %s" % path 167 167 168 168 def test_student_admission_letter(self):
Note: See TracChangeset for help on using the changeset viewer.