- Timestamp:
- 25 Oct 2016, 10:12:11 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py
r14150 r14228 21 21 import os 22 22 from zope.event import notify 23 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState 23 24 from zope.component import createObject, getUtility 24 25 from waeup.kofa.configuration import SessionConfiguration … … 94 95 return 95 96 97 def test_application_slips(self): 98 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 99 self.slip_path = self.view_path + '/application_slip.pdf' 100 self.browser.open(self.manage_path) 101 self.assertEqual(self.browser.headers['Status'], '200 Ok') 102 self.fill_correct_values() 103 self.browser.getControl("Save").click() 104 IWorkflowState(self.applicant).setState('admitted') 105 self.applicant.course_admitted = self.certificate 106 self.browser.open(self.manage_path) 107 self.browser.getLink("Download application slip").click() 108 self.assertEqual(self.browser.headers['Status'], '200 Ok') 109 self.assertEqual(self.browser.headers['Content-Type'], 110 'application/pdf') 111 path = os.path.join(samples_dir(), 'application_slip.pdf') 112 open(path, 'wb').write(self.browser.contents) 113 print "Sample application_slip.pdf written to %s" % path 114 96 115 def test_transcript_application_manage(self): 97 116 # Add trans applicants container
Note: See TracChangeset for help on using the changeset viewer.