Changeset 9520 for main/waeup.uniben/trunk/src/waeup/uniben/interswitch
- Timestamp:
- 4 Nov 2012, 07:48:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r9515 r9520 97 97 self.browser.contents) 98 98 99 # Create school fee ticket for returning students 99 # Create school fee ticket for returning students. Payment is made 100 # for next session. 101 current_payment_key = self.student['payments'].keys()[0] 100 102 self.certificate.study_mode = u'ug_pt' 101 103 IWorkflowState(self.student).setState('returning') … … 103 105 configuration.academic_session = 2005 104 106 self.app['configuration'].addSessionConfiguration(configuration) 107 self.browser.open(self.payments_path + '/addop') 108 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 109 self.browser.getControl("Create ticket").click() 110 # Next session payment can't be made ... 111 self.assertMatches( 112 '...You have not yet paid your current/active session...', 113 self.browser.contents) 114 # current session payment must be approved first. 115 self.student['payments'][current_payment_key].approve() 105 116 self.browser.open(self.payments_path + '/addop') 106 117 self.browser.getControl(name="form.p_category").value = ['schoolfee']
Note: See TracChangeset for help on using the changeset viewer.