- Timestamp:
- 3 Jan 2023, 17:40:18 (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r17111 r17255 1220 1220 open(path, 'wb').write(self.browser.contents) 1221 1221 print "Sample PDF medical_questionnaire_slip.pdf written to %s" % path 1222 1223 self.browser.open(self.student_path) 1224 self.browser.getLink("Medical Questionnaire").click() 1225 self.browser.getControl(name="form.bloodgroup").value = 'A' 1226 self.browser.getControl(name="form.genotype").value = 'XYZ' 1227 self.browser.getControl("Save").click() 1228 self.browser.getLink("Download TISHIP registration slip").click() 1229 self.assertEqual(self.browser.headers['Status'], '200 Ok') 1230 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 1231 path = os.path.join(samples_dir(), 'tiship_slip.pdf') 1232 open(path, 'wb').write(self.browser.contents) 1233 print "Sample PDF tiship_slip.pdf written to %s" % path
Note: See TracChangeset for help on using the changeset viewer.