- Timestamp:
- 21 Feb 2017, 06:46:42 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py
r14556 r14566 47 47 self.certificate.end_level = 300 48 48 self.student['studycourse'].current_verdict = 'B' 49 self.student['studycourse'].current_level = 30049 self.student['studycourse'].current_level = 200 50 50 configuration = createObject('waeup.SessionConfiguration') 51 51 configuration.academic_session = 2005 52 52 self.app['configuration'].addSessionConfiguration(configuration) 53 self.app['configuration']['2005'].penalty_nce _ft = 99.053 self.app['configuration']['2005'].penalty_nce3_ft = 99.0 54 54 self.student['studycourse'].certificate.study_mode = 'nce_ft' 55 55 utils = getUtility(IStudentsUtils) … … 57 57 IWorkflowState(self.student).setState('returning') 58 58 error, payment = utils.setPaymentDetails('schoolfee',self.student) 59 self.assertEqual(payment.amount_auth, 1 2224.0) # 11975 + 150 + 9959 self.assertEqual(payment.amount_auth, 14124.0) # 13875 + 150 + 99 60 60 self.student['studycourse'].previous_verdict = 'O' 61 61 error, payment = utils.setPaymentDetails('schoolfee',self.student) 62 self.assertEqual(payment.amount_auth, 1 2125.0) # 11975 + 15062 self.assertEqual(payment.amount_auth, 14025.0) # 13875 + 150 63 63 return
Note: See TracChangeset for help on using the changeset viewer.