- Timestamp:
- 10 Nov 2020, 14:33:53 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/tests/test_utils.py
r15360 r16309 88 88 self.assertEqual(payment.p_session, 2005) 89 89 self.assertEqual(payment.amount_auth, 3150.0) 90 # Students can pay school fee if dep_sug hasbeen paid first.90 # Students can pay school fee if dep_sug and gns dues have been paid first. 91 91 error, payment = utils.setPaymentDetails('schoolfee',self.student) 92 self.assertEqual(error, u'You have to pay NADESU/SA/SUG Dues first.')92 self.assertEqual(error, u'You have to pay NADESU/SA/SUG and GNS Dues first.') 93 93 error, payment = utils.setPaymentDetails('dep_sug',self.student) 94 94 self.student['payments']['any_key'] = payment 95 95 error, payment = utils.setPaymentDetails('schoolfee',self.student) 96 self.assertEqual(error, u'You have to pay NADESU/SA/SUG Dues first.') 96 self.assertEqual(error, u'You have to pay NADESU/SA/SUG and GNS Dues first.') 97 98 configuration.gns_1_fee = 1150.0 99 error, payment2 = utils.setPaymentDetails('gns_1',self.student) 100 self.student['payments']['any_key2'] = payment2 101 self.assertEqual(payment2.p_level, 200) 102 self.assertEqual(payment2.p_session, 2005) 103 self.assertEqual(payment2.amount_auth, 1150.0) 104 error, payment = utils.setPaymentDetails('schoolfee',self.student) 105 97 106 self.student['payments']['any_key'].p_state = 'paid' 107 self.student['payments']['any_key2'].p_state = 'paid' 98 108 error, payment = utils.setPaymentDetails('schoolfee',self.student) 99 109 self.assertEqual(error, None)
Note: See TracChangeset for help on using the changeset viewer.