Changeset 13421 for main/waeup.aaue/trunk/src/waeup/aaue/students
- Timestamp:
- 9 Nov 2015, 14:13:28 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r13418 r13421 116 116 self.browser.open(self.payments_path) 117 117 self.browser.getLink("Add current session payment ticket").click() 118 self.browser.getControl(name="form.p_category").value = ['schoolfee ']118 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 119 119 self.browser.getControl("Create ticket").click() 120 120 self.assertMatches('...Wrong state...', … … 131 131 # self.browser.contents) 132 132 self.app['configuration']['2004'].clearance_fee = 666.0 133 self.browser.getControl(name="form.p_category").value = ['clearance ']133 self.browser.getControl(name="form.p_category").value = ['clearance_incl'] 134 134 self.browser.getControl("Create ticket").click() 135 135 ctrl = self.browser.getControl(name='val_id') … … 139 139 self.student.nationality = u'NG' 140 140 self.browser.open(self.payments_path + '/addop') 141 self.browser.getControl(name="form.p_category").value = ['schoolfee ']141 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 142 142 self.browser.getControl("Create ticket").click() 143 143 self.assertMatches('...ticket created...', … … 169 169 # ... no further school fee ticket can be added. 170 170 self.browser.open(self.payments_path + '/addop') 171 self.browser.getControl(name="form.p_category").value = ['schoolfee ']171 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 172 172 self.browser.getControl("Create ticket").click() 173 173 self.assertMatches('...Wrong state...', … … 243 243 IWorkflowState(self.student).setState('cleared') 244 244 self.browser.getLink("Add current session payment ticket").click() 245 self.browser.getControl(name="form.p_category").value = ['schoolfee ']245 self.browser.getControl(name="form.p_category").value = ['schoolfee_incl'] 246 246 self.browser.getControl("Create ticket").click() 247 247 ctrl = self.browser.getControl(name='val_id') … … 265 265 self.assertTrue( 266 266 'zope.mgr - students.browser.OnlinePaymentApproveView ' 267 '- E1000000 - schoolfee payment approved'267 '- E1000000 - schoolfee_incl payment approved' 268 268 in logcontent) 269 269 # ... and in payments.log … … 272 272 logcontent = open(logfile).read() 273 273 self.assertTrue( 274 '"zope.mgr",E1000000,%s,schoolfee ,6666.0,AP,,,,,,\n' % value274 '"zope.mgr",E1000000,%s,schoolfee_incl,6666.0,AP,,,,,,\n' % value 275 275 in logcontent) 276 276 # Student is in state school fee paid, no activation
Note: See TracChangeset for help on using the changeset viewer.