Changeset 11755 for main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests
- Timestamp:
- 9 Jul 2014, 05:43:16 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests/test_browser.py
r10929 r11755 19 19 from zope.event import notify 20 20 from zope.component import createObject, getUtility 21 from waeup.kofa.configuration import SessionConfiguration 21 22 from waeup.aaue.testing import FunctionalLayer 22 23 from waeup.kofa.applicants.tests.test_browser import ( 23 ApplicantsFullSetup, container_name_1 )24 ApplicantsFullSetup, container_name_1, session_1) 24 25 25 26 class CustomApplicantUITest(ApplicantsFullSetup): … … 44 45 self.assertTrue('<td>Password:</td>' in self.browser.contents) 45 46 return 47 48 def test_payment_slip_download_warning(self): 49 configuration = SessionConfiguration() 50 configuration.academic_session = session_1 51 configuration.application_fee = 200.0 52 self.app['configuration'].addSessionConfiguration(configuration) 53 self.login() 54 self.browser.open(self.edit_path) 55 self.fill_correct_values() 56 self.browser.getControl(name="form.programme_type").value = ['regular'] 57 self.browser.getControl(name="form.nationality").value = ['NG'] 58 self.browser.getControl("Save").click() 59 self.browser.getControl("Add online payment ticket").click() 60 self.assertMatches('...Payment ticket created...', 61 self.browser.contents) 62 # Payment tickets can be downloaded without submitting the form. 63 self.browser.getLink("Download payment slip").click() 64 self.assertEqual(self.browser.headers['Content-Type'], 65 'application/pdf') 66 return
Note: See TracChangeset for help on using the changeset viewer.