- Timestamp:
- 5 Feb 2020, 22:34:10 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r15977 r15989 455 455 IWorkflowState(self.student).setState('courses validated') 456 456 self.browser.open(self.student_path + '/studycourse/100') 457 self.browser.getLink("Download examination clearance slip").click()457 self.browser.getLink("Download 1st semester examination clearance slip").click() 458 458 self.assertEqual(self.browser.headers['Status'], '200 Ok') 459 459 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 460 path = os.path.join(samples_dir(), 'examination_clearance_slip .pdf')460 path = os.path.join(samples_dir(), 'examination_clearance_slip_1.pdf') 461 461 open(path, 'wb').write(self.browser.contents) 462 print "Sample PDF examination_clearance_slip.pdf written to %s" % path 462 print "Sample PDF examination_clearance_slip_1.pdf written to %s" % path 463 self.browser.open(self.student_path + '/studycourse/100') 464 self.browser.getLink("Download 2nd semester examination clearance slip").click() 465 self.assertEqual(self.browser.headers['Status'], '200 Ok') 466 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 467 path = os.path.join(samples_dir(), 'examination_clearance_slip_2.pdf') 468 open(path, 'wb').write(self.browser.contents) 469 print "Sample PDF examination_clearance_slip_2.pdf written to %s" % path
Note: See TracChangeset for help on using the changeset viewer.