- Timestamp:
- 25 Jan 2021, 12:37:04 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r16382 r16385 1169 1169 self.browser.contents) 1170 1170 1171 def test_student_medical_ history(self):1171 def test_student_medical_questionnaire(self): 1172 1172 IWorkflowInfo(self.student).fireTransition('admit') 1173 1173 self.browser.open(self.login_path) … … 1178 1178 '...You logged in...', self.browser.contents) 1179 1179 self.browser.getLink("Base Data").click() 1180 self.browser.getLink(" Edit medical history").click()1181 self.browser.getLink("Download medical historyslip").click()1180 self.browser.getLink("Medical Questionnaire").click() 1181 self.browser.getLink("Download medical questionnaire slip").click() 1182 1182 self.assertEqual(self.browser.headers['Status'], '200 Ok') 1183 1183 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 1184 path = os.path.join(samples_dir(), 'medical_ history_slip.pdf')1184 path = os.path.join(samples_dir(), 'medical_questionnaire_slip.pdf') 1185 1185 open(path, 'wb').write(self.browser.contents) 1186 print "Sample PDF medical_ history_slip.pdf written to %s" % path1186 print "Sample PDF medical_questionnaire_slip.pdf written to %s" % path
Note: See TracChangeset for help on using the changeset viewer.