- Timestamp:
- 1 Sep 2020, 06:11:13 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/tests/test_utils.py
r16136 r16222 52 52 self.assertEqual(error, 53 53 'Registration Fee, Book Deposit, Development Fee, Municipal Fee, ' 54 'Parents Consultative Forum (PCF) Fee must be paid before Tution Fee.') 54 'Parents Consultative Forum (PCF) Fee must be paid before Tution Fee. ' 55 'Make either single payments or make a \'Required Combi Payment\'.') 56 # A 'Required Combi Payment' is sufficient. 55 57 reg_payment = createObject('waeup.StudentOnlinePayment') 56 reg_payment.p_category = u're gistration'58 reg_payment.p_category = u'required_combi' 57 59 reg_payment.p_id = u'anyid' 58 60 reg_payment.p_state = u'paid' … … 60 62 self.student['payments']['anykey'] = reg_payment 61 63 error, payment = utils.setPaymentDetails('schoolfee',self.student) 64 self.assertEqual(error, None) 65 # Let's try with single payments. 66 reg_payment.p_category = u'registration' 67 error, payment = utils.setPaymentDetails('schoolfee',self.student) 62 68 self.assertEqual(error, 63 69 'Book Deposit, Development Fee, Municipal Fee, Parents Consultative ' 64 'Forum (PCF) Fee must be paid before Tution Fee.') 70 'Forum (PCF) Fee must be paid before Tution Fee. ' 71 'Make either single payments or make a \'Required Combi Payment\'.') 65 72 IWorkflowState(self.student).setState('returning') 66 73 configuration = createObject('waeup.SessionConfiguration') … … 71 78 self.assertEqual(error, 72 79 'Registration Fee, Book Deposit, Development Fee, Municipal Fee, ' 73 'Parents Consultative Forum (PCF) Fee must be paid before Tution Fee.') 80 'Parents Consultative Forum (PCF) Fee must be paid before Tution Fee. ' 81 'Make either single payments or make a \'Required Combi Payment\'.') 74 82 reg_payment.p_session = 2005 75 83 error, payment = utils.setPaymentDetails('schoolfee',self.student) 76 84 self.assertEqual(error, 77 85 'Book Deposit, Development Fee, Municipal Fee, Parents Consultative ' 78 'Forum (PCF) Fee must be paid before Tution Fee.') 86 'Forum (PCF) Fee must be paid before Tution Fee. ' 87 'Make either single payments or make a \'Required Combi Payment\'.') 79 88 pcf_payment = createObject('waeup.StudentOnlinePayment') 80 89 pcf_payment.p_category = u'parentsconsult' … … 85 94 error, payment = utils.setPaymentDetails('schoolfee',self.student) 86 95 self.assertEqual(error, 87 'Book Deposit, Development Fee, Municipal Fee must be paid before Tution Fee.') 96 'Book Deposit, Development Fee, Municipal Fee must be paid before Tution Fee. ' 97 'Make either single payments or make a \'Required Combi Payment\'.') 88 98 munic_payment = createObject('waeup.StudentOnlinePayment') 89 99 munic_payment.p_category = u'municipal_fresh' … … 94 104 error, payment = utils.setPaymentDetails('schoolfee',self.student) 95 105 self.assertEqual(error, 96 'Book Deposit, Development Fee must be paid before Tution Fee.') 106 'Book Deposit, Development Fee must be paid before Tution Fee. ' 107 'Make either single payments or make a \'Required Combi Payment\'.') 97 108 book_payment = createObject('waeup.StudentOnlinePayment') 98 109 book_payment.p_category = u'book'
Note: See TracChangeset for help on using the changeset viewer.