- Timestamp:
- 3 Feb 2020, 14:54:07 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r15887 r15977 442 442 self.browser.contents) 443 443 self.browser.getControl("Create course list now").click() 444 # Students can 'topen the customized pdf course registration slip444 # Students can open the customized pdf course registration slip 445 445 self.browser.open( 446 446 self.student_path + '/studycourse/100/course_registration_slip.pdf') … … 450 450 open(path, 'wb').write(self.browser.contents) 451 451 print "Sample PDF course_registration_slip.pdf written to %s" % path 452 453 # Students can open the examination clearance slip if they are 454 # in state courses validated 455 IWorkflowState(self.student).setState('courses validated') 456 self.browser.open(self.student_path + '/studycourse/100') 457 self.browser.getLink("Download examination clearance slip").click() 458 self.assertEqual(self.browser.headers['Status'], '200 Ok') 459 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 460 path = os.path.join(samples_dir(), 'examination_clearance_slip.pdf') 461 open(path, 'wb').write(self.browser.contents) 462 print "Sample PDF examination_clearance_slip.pdf written to %s" % path
Note: See TracChangeset for help on using the changeset viewer.