- Timestamp:
- 27 Mar 2017, 10:39:43 (8 years ago)
- Location:
- main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_browser.py
r14344 r14658 73 73 self.assertEqual(self.student['payments'].values()[0].p_category, 'schoolfee_1') 74 74 self.assertEqual(self.student['payments'].values()[1].p_category, 'schoolfee_2') 75 # 79200 / 2 + 30076 self.assertEqual(self.student['payments'].values()[0].amount_auth, 39 900.0)77 self.assertEqual(self.student['payments'].values()[1].amount_auth, 39 900.0)75 # 79200 / 2 + 250 76 self.assertEqual(self.student['payments'].values()[0].amount_auth, 39850.0) 77 self.assertEqual(self.student['payments'].values()[1].amount_auth, 39850.0) 78 78 # The two payments belong to the same session and level. 79 79 self.assertEqual(self.student['payments'].values()[0].p_session, 2004) … … 103 103 self.assertEqual(self.student.current_level, 200) 104 104 self.assertEqual(self.student.current_session, 2005) 105 # 63100 / 2 + 300106 self.assertEqual(self.student['payments'].values()[2].amount_auth, 318 50.0)107 self.assertEqual(self.student['payments'].values()[3].amount_auth, 318 50.0)105 # 63100 / 2 + 250 106 self.assertEqual(self.student['payments'].values()[2].amount_auth, 31800.0) 107 self.assertEqual(self.student['payments'].values()[3].amount_auth, 31800.0) 108 108 # The last two payments belong to the same session and level. 109 109 self.assertEqual(self.student['payments'].values()[2].p_session, 2005) -
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_utils.py
r14639 r14658 31 31 self.assertEqual(payment.p_level, 100) 32 32 self.assertEqual(payment.p_session, 2016) 33 self.assertEqual(payment.amount_auth, 79 500.0)33 self.assertEqual(payment.amount_auth, 79450.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, 39 900.0)40 self.assertEqual(payment.amount_auth, 39850.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, 39 900.0)47 self.assertEqual(payment.amount_auth, 39850.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, 69 500.0)57 self.assertEqual(payment.amount_auth, 69450.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.