- Timestamp:
- 17 Mar 2021, 21:56:12 (4 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
r16369 r16417 75 75 self.assertEqual(self.student['payments'].values()[0].p_category, 'schoolfee_1') 76 76 self.assertEqual(self.student['payments'].values()[1].p_category, 'schoolfee_2') 77 # 8 0200/ 2 + 25078 self.assertEqual(self.student['payments'].values()[0].amount_auth, 4 0350.0)79 self.assertEqual(self.student['payments'].values()[1].amount_auth, 4 0350.0)77 # 85700/ 2 + 250 78 self.assertEqual(self.student['payments'].values()[0].amount_auth, 43100.0) 79 self.assertEqual(self.student['payments'].values()[1].amount_auth, 43100.0) 80 80 # The two payments belong to the same session and level. 81 81 self.assertEqual(self.student['payments'].values()[0].p_session, 2004) … … 105 105 self.assertEqual(self.student.current_level, 200) 106 106 self.assertEqual(self.student.current_session, 2005) 107 # 7 3700 / 2 + 250108 self.assertEqual(self.student['payments'].values()[2].amount_auth, 37100.0)109 self.assertEqual(self.student['payments'].values()[3].amount_auth, 37100.0)107 # 79700 / 2 + 250 108 self.assertEqual(self.student['payments'].values()[2].amount_auth, 40100.0) 109 self.assertEqual(self.student['payments'].values()[3].amount_auth, 40100.0) 110 110 # The last two payments belong to the same session and level. 111 111 self.assertEqual(self.student['payments'].values()[2].p_session, 2005) -
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_utils.py
r15747 r16417 31 31 self.assertEqual(payment.p_level, 100) 32 32 self.assertEqual(payment.p_session, 2016) 33 self.assertEqual(payment.amount_auth, 8 0450.0)33 self.assertEqual(payment.amount_auth, 85950.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, 4 0350.0)40 self.assertEqual(payment.amount_auth, 43100.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, 4 0350.0)47 self.assertEqual(payment.amount_auth, 43100.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, 7 0450.0)57 self.assertEqual(payment.amount_auth, 75950.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.