Changeset 15352 for main/waeup.uniben/trunk/src/waeup/uniben/students/tests
- Timestamp:
- 13 Mar 2019, 17:48:36 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r15314 r15352 213 213 self.browser.open(self.student_path) 214 214 self.assertFalse('examination schedule slip' in self.browser.contents) 215 216 def test_jhl_idcard(self): 217 self.browser.open(self.login_path) 218 self.browser.getControl(name="form.login").value = self.student_id 219 self.browser.getControl(name="form.password").value = 'spwd' 220 self.browser.getControl("Login").click() 221 self.browser.getLink("Download JHL Id Card").click() 222 self.assertEqual(self.browser.headers['Status'], '200 Ok') 223 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 224 path = os.path.join(samples_dir(), 'jhl_idcard.pdf') 225 open(path, 'wb').write(self.browser.contents) 226 print "Sample PDF jhl_idcard.pdf written to %s" % path 215 227 216 228 def test_jupeb_result_slip(self):
Note: See TracChangeset for help on using the changeset viewer.