- Timestamp:
- 18 Mar 2016, 06:17:39 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py
r13634 r13781 445 445 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 446 446 self.browser.open(self.student_path + '/clear_financially') 447 self.browser.getLink("Download f inancial clearance slip").click()447 self.browser.getLink("Download fee payment history").click() 448 448 self.assertEqual(self.browser.headers['Status'], '200 Ok') 449 449 self.assertEqual(self.browser.headers['Content-Type'], 450 450 'application/pdf') 451 path = os.path.join(samples_dir(), 'f inancial_clearance_slip.pdf')451 path = os.path.join(samples_dir(), 'fee_payment_history.pdf') 452 452 open(path, 'wb').write(self.browser.contents) 453 print "Sample PDF f inancial_clearance_slip.pdf written to %s" % path453 print "Sample PDF fee_payment_history.pdf written to %s" % path 454 454 return
Note: See TracChangeset for help on using the changeset viewer.