- Timestamp:
- 23 Jul 2022, 16:21:58 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edocons/trunk/src/kofacustom/edocons/interswitch/tests.py
r17029 r17031 59 59 self.student.nationality = u'NG' 60 60 self.browser.open(self.payments_path + '/addop') 61 self.browser.getControl(name="form.p_category").value = ['schoolfee _1']61 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 62 62 self.browser.getControl("Create ticket").click() 63 63 self.assertMatches('...ticket created...', … … 70 70 self.browser.contents) 71 71 self.assertTrue( 72 '<span> 220000.0</span>' in self.browser.contents)72 '<span>40000.0</span>' in self.browser.contents) 73 73 self.payment_url = self.browser.url 74 74 self.browser.getLink("Pay via Interswitch CollegePAY", index=0).click() … … 77 77 self.assertEqual(self.student.current_mode, 'ug_ft') 78 78 self.assertTrue( 79 '<input type="hidden" name="amount" value="22030000" />' in 80 self.browser.contents) 81 self.assertTrue( 82 'item_name="School Fee - 1st instalment" item_amt="22000000" bank_id="31" acct_num="1489560452"' in 79 '<input type="hidden" name="amount" value="4030000" />' in 80 self.browser.contents) 81 self.assertTrue( 82 'item_name="School Fee (total amount)" item_amt="4000000" bank_id="31" acct_num="1489560452"' in 83 self.browser.contents) 84 self.browser.open(self.payments_path + '/addop') 85 self.browser.getControl(name="form.p_category").value = ['schoolfee_1'] 86 self.browser.getControl("Create ticket").click() 87 self.assertMatches('...ticket created...', 88 self.browser.contents) 89 self.browser.open(self.payments_path) 90 ctrl = self.browser.getControl(name='val_id') 91 self.value = ctrl.options[1] 92 self.browser.getLink(self.value).click() 93 self.assertMatches('...Amount Authorized...', 94 self.browser.contents) 95 self.assertTrue( 96 '<span>26400.0</span>' in self.browser.contents) 97 self.payment_url = self.browser.url 98 self.browser.getLink("Pay via Interswitch CollegePAY", index=0).click() 99 self.assertMatches('...<input type="hidden" name="pay_item_id" value="Default_Payable_MX26002" />...', 100 self.browser.contents) 101 self.assertEqual(self.student.current_mode, 'ug_ft') 102 self.assertTrue( 103 '<input type="hidden" name="amount" value="2670000" />' in 104 self.browser.contents) 105 self.assertTrue( 106 'item_name="School Fee (66% - 1st instalment)" item_amt="2640000" bank_id="31" acct_num="1489560452"' in 83 107 self.browser.contents) 84 108
Note: See TracChangeset for help on using the changeset viewer.