Changeset 14954 for main/waeup.aaue/trunk/src/waeup/aaue/students/tests
- Timestamp:
- 14 Feb 2018, 07:16:54 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py
r14733 r14954 98 98 self.assertEqual(error, None) 99 99 100 configuration = createObject('waeup.SessionConfiguration') 101 configuration.academic_session = 2016 102 self.app['configuration'].addSessionConfiguration(configuration) 103 configuration = createObject('waeup.SessionConfiguration') 104 configuration.academic_session = 2017 105 self.app['configuration'].addSessionConfiguration(configuration) 106 configuration = createObject('waeup.SessionConfiguration') 107 configuration.academic_session = 2018 108 self.app['configuration'].addSessionConfiguration(configuration) 109 self.student['studycourse'].current_session = 2017 110 self.student['studycourse'].entry_session = 2015 111 error, payment = utils.setPaymentDetails('schoolfee',self.student) 112 self.assertEqual(payment.p_level, 200) 113 self.assertEqual(payment.p_session, 2018) 114 self.assertEqual(payment.amount_auth, 7777.0) 115 self.assertEqual(payment.p_item, u'CERT1') 116 self.assertEqual(error, None) 117 self.student['studycourse'].entry_session = 2017 118 error, payment = utils.setPaymentDetails('schoolfee',self.student) 119 self.assertEqual(payment.p_level, 200) 120 self.assertEqual(payment.p_session, 2018) 121 self.assertEqual(payment.amount_auth, 8888.0) 122 self.assertEqual(payment.p_item, u'CERT1') 123 self.assertEqual(error, None) 124 125 self.student['studycourse'].current_session = 2004 126 self.student['studycourse'].entry_session = 2004 100 127 error, payment = utils.setPaymentDetails('clearance',self.student) 101 128 self.assertEqual(error, 'Acceptance Fee payments not allowed.')
Note: See TracChangeset for help on using the changeset viewer.