Changeset 17885 for main/waeup.uniben/trunk/src/waeup/uniben/students/tests
- Timestamp:
- 11 Aug 2024, 19:29:13 (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r17845 r17885 1298 1298 print "Sample PDF fee_payment_history.pdf written to %s" % path 1299 1299 return 1300 1301 def test_affidavit_slip(self): 1302 self.browser.open(self.login_path) 1303 self.browser.getControl(name="form.login").value = self.student_id 1304 self.browser.getControl(name="form.password").value = 'spwd' 1305 self.browser.getControl("Login").click() 1306 self.browser.getLink("Base Data").click() 1307 self.browser.getLink("Upload affidavit of good conduct").click() 1308 self.browser.getLink("Download affidavit of good conduct form").click() 1309 self.assertEqual(self.browser.headers['Status'], '200 Ok') 1310 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 1311 path = os.path.join(samples_dir(), 'affidavit_good_conduct.pdf') 1312 open(path, 'wb').write(self.browser.contents) 1313 print "Sample PDF affidavit_good_conduct.pdf written to %s" % path
Note: See TracChangeset for help on using the changeset viewer.