- Timestamp:
- 4 Nov 2019, 08:21:21 (5 years ago)
- Location:
- main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_browser.py
r14941 r15747 74 74 self.assertEqual(self.student['payments'].values()[0].p_category, 'schoolfee_1') 75 75 self.assertEqual(self.student['payments'].values()[1].p_category, 'schoolfee_2') 76 # 79200 / 2 + 25077 self.assertEqual(self.student['payments'].values()[0].amount_auth, 39850.0)78 self.assertEqual(self.student['payments'].values()[1].amount_auth, 39850.0)76 # 80200 / 2 + 250 77 self.assertEqual(self.student['payments'].values()[0].amount_auth, 40350.0) 78 self.assertEqual(self.student['payments'].values()[1].amount_auth, 40350.0) 79 79 # The two payments belong to the same session and level. 80 80 self.assertEqual(self.student['payments'].values()[0].p_session, 2004) … … 104 104 self.assertEqual(self.student.current_level, 200) 105 105 self.assertEqual(self.student.current_session, 2005) 106 # 63100 / 2 + 250107 self.assertEqual(self.student['payments'].values()[2].amount_auth, 37 600.0)108 self.assertEqual(self.student['payments'].values()[3].amount_auth, 37 600.0)106 # 73700 / 2 + 250 107 self.assertEqual(self.student['payments'].values()[2].amount_auth, 37100.0) 108 self.assertEqual(self.student['payments'].values()[3].amount_auth, 37100.0) 109 109 # The last two payments belong to the same session and level. 110 110 self.assertEqual(self.student['payments'].values()[2].p_session, 2005) -
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_export.py
r15670 r15747 103 103 result = open(self.outfile, 'rb').read() 104 104 self.assertMatches( 105 'ac,amount_auth,creation_date,gateway_amt, p_category,p_combi,p_current,'105 'ac,amount_auth,creation_date,gateway_amt,net_amt,p_category,p_combi,p_current,' 106 106 'p_id,p_item,p_level,p_session,p_state,payment_date,provider_amt,' 107 107 'r_amount_approved,r_card_num,r_code,r_company,r_desc,' 108 108 'r_pay_reference,thirdparty_amt,student_id,state,' 109 109 'current_session\r\n' 110 '666,12.12,%s-04-01 13:12:01#,, schoolfee,[],1,my-id,p-item,'110 '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[],1,my-id,p-item,' 111 111 '100,%s,paid,%s-04-01 14:12:01#,,12.12,' 112 112 '789,r-code,interswatch,,,,A111111,created,2012\r\n' -
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_utils.py
r15443 r15747 31 31 self.assertEqual(payment.p_level, 100) 32 32 self.assertEqual(payment.p_session, 2016) 33 self.assertEqual(payment.amount_auth, 79450.0)33 self.assertEqual(payment.amount_auth, 80450.0) 34 34 self.assertEqual(payment.p_item, u'CERT1') 35 35 self.assertEqual(error, None) … … 38 38 self.assertEqual(payment.p_level, 100) 39 39 self.assertEqual(payment.p_session, 2016) 40 self.assertEqual(payment.amount_auth, 39850.0)40 self.assertEqual(payment.amount_auth, 40350.0) 41 41 self.assertEqual(payment.p_item, u'CERT1') 42 42 self.assertEqual(error, None) … … 45 45 self.assertEqual(payment.p_level, 100) 46 46 self.assertEqual(payment.p_session, 2016) 47 self.assertEqual(payment.amount_auth, 39850.0)47 self.assertEqual(payment.amount_auth, 40350.0) 48 48 self.assertEqual(payment.p_item, u'CERT1') 49 49 self.assertEqual(error, None) … … 55 55 self.student.lga = 'delta_burutu' 56 56 error, payment = utils.setPaymentDetails('schoolfee',self.student) 57 self.assertEqual(payment.amount_auth, 69450.0)57 self.assertEqual(payment.amount_auth, 70450.0) 58 58 error, payment = utils.setPaymentDetails('clearance',self.student) 59 59 self.assertEqual(payment.amount_auth, 20300.0)
Note: See TracChangeset for help on using the changeset viewer.