- Timestamp:
- 22 Jul 2019, 19:22:40 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r15300 r15507 378 378 return 379 379 380 def test_admission_slip _link(self):380 def test_admission_slip(self): 381 381 # Login 382 382 IWorkflowState(self.student).setState('admitted') … … 391 391 self.assertTrue( 392 392 'Download admission letter' in self.browser.contents) 393 # Students can open admission letter 394 self.browser.getLink("Download admission letter").click() 395 self.assertEqual(self.browser.headers['Status'], '200 Ok') 396 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 397 path = os.path.join(samples_dir(), 'admission_slip.pdf') 398 open(path, 'wb').write(self.browser.contents) 399 print "Sample PDF admission_slip.pdf written to %s" % path 393 400 return 394 401
Note: See TracChangeset for help on using the changeset viewer.