Changeset 15867 for main/waeup.aaue/trunk/src/waeup/aaue/students/tests
- Timestamp:
- 5 Dec 2019, 16:50:14 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r15803 r15867 274 274 self.assertEqual(self.student['payments'].values()[0].p_category, 'schoolfee_1') 275 275 self.assertEqual(self.student['payments'].values()[1].p_category, 'schoolfee_2') 276 # (6666-2 50)/2 + 1250 + 750 - 500 + 250277 self.assertEqual(self.student['payments'].values()[0].amount_auth, 4958.0)278 # (6666-2 50)/2 + 250279 self.assertEqual(self.student['payments'].values()[1].amount_auth, 34 58.0)276 # (6666-200)/2 + 1250 + 750 - 400 + 200 277 self.assertEqual(self.student['payments'].values()[0].amount_auth, 5033.0) 278 # (6666-200)/2 + 200 279 self.assertEqual(self.student['payments'].values()[1].amount_auth, 3433.0) 280 280 # The two payments belong to the same session and level. 281 281 self.assertEqual(self.student['payments'].values()[0].p_session, 2015) … … 309 309 self.browser.getControl("Create ticket").click() 310 310 self.assertTrue('ticket created' in self.browser.contents) 311 # (5666-2 50)/2 + 1250 + 750 - 500 + 250312 self.assertEqual(self.student['payments'].values()[2].amount_auth, 4 458.0)313 # (5666-2 50)/2 + 250314 self.assertEqual(self.student['payments'].values()[3].amount_auth, 29 58.0)311 # (5666-200)/2 + 1250 + 750 - 400 + 200 312 self.assertEqual(self.student['payments'].values()[2].amount_auth, 4533.0) 313 # (5666-200)/2 + 200 314 self.assertEqual(self.student['payments'].values()[3].amount_auth, 2933.0) 315 315 # The last two payments belong to the same session and level. 316 316 self.assertEqual(self.student['payments'].values()[2].p_session, 2016) … … 613 613 self.student['studycourse'].current_session = 2016 614 614 self.student['studycourse'].entry_mode = 'ug_ft' 615 self.student['studycourse'].certificate.school_fee_1 = 502 50.0616 self.app['configuration']['2016'].union_fee = 12 50.0617 self.app['configuration']['2016'].welfare_fee = 7 50.0618 self.app['configuration']['2016'].id_card_fee = 3 50.0615 self.student['studycourse'].certificate.school_fee_1 = 50200.0 616 self.app['configuration']['2016'].union_fee = 1200.0 617 self.app['configuration']['2016'].welfare_fee = 700.0 618 self.app['configuration']['2016'].id_card_fee = 300.0 619 619 self.student.nationality = u'NG' 620 620 # Login … … 633 633 self.browser.getLink(value).click() 634 634 self.assertTrue('Amount Authorized' in self.browser.contents) 635 # 502 50 + 1000 + 500 + 100 = 51850636 self.assertEqual(self.student['payments'][value].amount_auth, 518 50.0)635 # 50200 + 1200 + 700 + 300 - 600 = 51800 636 self.assertEqual(self.student['payments'][value].amount_auth, 51800.0) 637 637 self.student['payments'][value].r_company = u'interswitch' 638 638 self.browser.open(self.browser.url + '/payment_slip.pdf')
Note: See TracChangeset for help on using the changeset viewer.