Changeset 16946 for main/waeup.uniben/trunk/src/waeup/uniben/students/tests
- Timestamp:
- 2 May 2022, 09:50:27 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r16906 r16946 1013 1013 self.browser.getControl(name="form.password").value = 'spwd' 1014 1014 self.browser.getControl("Login").click() 1015 self.browser.open(self.student_path + '/studycourse/transcript') 1015 # Students can't open the pdf transcript ... 1016 transcript_path = self.student_path + '/studycourse/transcript' 1017 self.assertRaises( 1018 Unauthorized, self.browser.open, transcript_path) 1019 # ... but managers can 1020 self.browser.open(self.student_path) 1021 self.browser.getLink("Logout").click() 1022 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 1023 self.browser.open(transcript_path) 1016 1024 self.assertEqual(self.browser.headers['Status'], '200 Ok') 1017 1025 self.assertTrue('Transcript' in self.browser.contents) 1018 # Officers can open the pdf transcript1019 1026 self.browser.open(self.student_path + '/studycourse/transcript.pdf') 1020 1027 self.assertEqual(self.browser.headers['Status'], '200 Ok')
Note: See TracChangeset for help on using the changeset viewer.