- Timestamp:
- 21 Dec 2015, 21:41:28 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py
r13557 r13558 164 164 return 165 165 166 def test_asaba_application_slip(self): 167 168 # Remove required FieldProperty attribute first ... 169 delattr(ApplicantsContainer, 'prefix') 170 # ... and replace by asaba 171 self.applicantscontainer.prefix = 'afas' 166 def test_application_slip(self): 167 172 168 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 173 169 self.slip_path = self.view_path + '/application_slip.pdf' … … 185 181 open(path, 'wb').write(self.browser.contents) 186 182 print "Sample application_slip.pdf written to %s" % path 183 184 def test_akoka_application_slip(self): 185 186 # Remove required FieldProperty attribute first ... 187 delattr(ApplicantsContainer, 'prefix') 188 # ... and replace by akoka 189 self.applicantscontainer.prefix = 'afak' 190 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 191 self.slip_path = self.view_path + '/application_slip.pdf' 192 self.browser.open(self.manage_path) 193 self.assertEqual(self.browser.headers['Status'], '200 Ok') 194 self.fill_correct_values() 195 self.browser.getControl("Save").click() 196 IWorkflowState(self.applicant).setState('submitted') 197 self.browser.open(self.manage_path) 198 self.browser.getLink("Download application slip").click() 199 self.assertEqual(self.browser.headers['Status'], '200 Ok') 200 self.assertEqual(self.browser.headers['Content-Type'], 201 'application/pdf') 202 path = os.path.join(samples_dir(), 'akoka_application_slip.pdf') 203 open(path, 'wb').write(self.browser.contents) 204 print "Sample akoka_application_slip.pdf written to %s" % path
Note: See TracChangeset for help on using the changeset viewer.