- Timestamp:
- 5 Mar 2013, 21:39:26 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r10010 r10012 96 96 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 97 97 self.browser.getControl("Create ticket").click() 98 self.assertMatches('... Amount could not be determined...',98 self.assertMatches('...Wrong state...', 99 99 self.browser.contents) 100 100 IWorkflowState(self.student).setState('cleared') … … 184 184 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 185 185 self.browser.getControl("Create ticket").click() 186 self.assertMatches('... Amount could not be determined...',186 self.assertMatches('...Wrong state...', 187 187 self.browser.contents) 188 188 … … 223 223 error, payment = utils.setPaymentDetails('schoolfee',self.student) 224 224 self.assertEqual(payment, None) 225 self.assertEqual(error, u' Amount could not be determined.')225 self.assertEqual(error, u'Wrong state.') 226 226 227 227 IWorkflowState(self.student).setState('cleared') 228 self.certificate.study_mode = 'nce_ft' 228 229 error, payment = utils.setPaymentDetails('schoolfee',self.student) 229 230 self.assertEqual(payment.p_level, 100) … … 244 245 self.assertEqual(payment.amount_auth, 11545.0) 245 246 self.assertEqual(payment.p_item, u'CERT1') 247 self.assertEqual(error, None) 248 249 # UG students pay 65150 250 self.certificate.study_mode = 'ug_ft' 251 error, payment = utils.setPaymentDetails('schoolfee',self.student) 252 self.assertEqual(payment.amount_auth, 65150.0) 246 253 self.assertEqual(error, None) 247 254
Note: See TracChangeset for help on using the changeset viewer.