- Timestamp:
- 14 Jan 2016, 14:41:20 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py
r13558 r13615 203 203 open(path, 'wb').write(self.browser.contents) 204 204 print "Sample akoka_application_slip.pdf written to %s" % path 205 206 def test_nils_application_slip(self): 207 208 # Remove required FieldProperty attribute first ... 209 #delattr(ApplicantsContainer, 'prefix') 210 # ... and replace by akoka 211 self.applicantscontainer.prefix = 'pgn' 212 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 213 self.slip_path = self.view_path + '/application_slip.pdf' 214 self.browser.open(self.manage_path) 215 self.assertEqual(self.browser.headers['Status'], '200 Ok') 216 self.fill_correct_values() 217 self.browser.getControl("Save").click() 218 IWorkflowState(self.applicant).setState('submitted') 219 self.browser.open(self.manage_path) 220 self.browser.getLink("Download application slip").click() 221 self.assertEqual(self.browser.headers['Status'], '200 Ok') 222 self.assertEqual(self.browser.headers['Content-Type'], 223 'application/pdf') 224 path = os.path.join(samples_dir(), 'nils_application_slip.pdf') 225 open(path, 'wb').write(self.browser.contents) 226 print "Sample nils_application_slip.pdf written to %s" % path
Note: See TracChangeset for help on using the changeset viewer.