Changeset 14685 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 15 May 2017, 11:28:32 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r14684 r14685 1198 1198 self.browser.open(self.payments_path) 1199 1199 1200 # Managers can add previousschool fee payment tickets in any state.1200 # Managers can add balance school fee payment tickets in any state. 1201 1201 IWorkflowState(self.student).setState('courses registered') 1202 1202 self.browser.open(self.payments_path) 1203 1203 self.browser.getLink("Add balance payment ticket").click() 1204 1204 1205 # P revious sessionpayment form is provided1205 # Palance payment form is provided 1206 1206 self.assertEqual(self.student.current_session, 2004) 1207 1207 self.browser.getControl(name="form.p_category").value = ['schoolfee'] … … 2923 2923 self.assertMatches('...This is not a previous session...', 2924 2924 self.browser.contents) 2925 2925 2926 # Students can pay current session school fee. 2926 2927 self.browser.getControl(name="form.p_category").value = ['schoolfee'] … … 2936 2937 self.browser.contents) 2937 2938 self.assertEqual(self.student['payments'][value].amount_auth, 20000.0) 2939 2940 # Ticket creation is logged. 2941 logfile = os.path.join( 2942 self.app['datacenter'].storage, 'logs', 'students.log') 2943 logcontent = open(logfile).read() 2944 self.assertTrue( 2945 'K1000000 - students.browser.PreviousPaymentAddFormPage - ' 2946 'K1000000 - added: %s' % value 2947 in logcontent) 2938 2948 2939 2949 # Payment session is properly set
Note: See TracChangeset for help on using the changeset viewer.