Changeset 14228 for main/waeup.aaue/trunk/src/waeup
- Timestamp:
- 25 Oct 2016, 10:12:11 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py
r14224 r14228 276 276 # 'scd_sit_type', 'scd_sit_results'] 277 277 278 279 def _getCourseAdmittedLink(self, view): 280 return None 281 282 def _getDeptAndFaculty(self): 283 return [None, None] 284 278 285 @property 279 286 def note(self): -
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.