- Timestamp:
- 4 Nov 2019, 08:21:21 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/interswitch/tests.py
r15322 r15747 68 68 self.browser.contents) 69 69 self.assertMatches( 70 '...<span> 79450.0</span>...',70 '...<span>80450.0</span>...', 71 71 self.browser.contents) 72 72 self.payment_url = self.browser.url 73 self.browser.getLink(" CollegePAY", index=0).click()73 self.browser.getLink("Pay via Interswitch", index=0).click() 74 74 self.assertMatches('...<input type="hidden" name="pay_item_id" value="103" />...', 75 75 self.browser.contents) … … 78 78 self.assertEqual(self.student.current_mode, 'ug_ft') 79 79 self.assertMatches( 80 '...<input type="hidden" name="amount" value=" 7945000" />...',81 self.browser.contents) 82 self.assertMatches( 83 '...item_name="School Fee (total)" item_amt=" 7945000" bank_id="7" acct_num="1019684470"...',80 '...<input type="hidden" name="amount" value="8045000" />...', 81 self.browser.contents) 82 self.assertMatches( 83 '...item_name="School Fee (total)" item_amt="8045000" bank_id="7" acct_num="1019684470"...', 84 84 self.browser.contents) 85 85 … … 94 94 self.student['payments']['xyz'] = acc_payment 95 95 self.browser.open(self.payments_path + '/xyz') 96 self.browser.getLink(" CollegePAY", index=0).click()96 self.browser.getLink("Pay via Interswitch", index=0).click() 97 97 self.assertMatches('...<input type="hidden" name="pay_item_id" value="102" />...', 98 98 self.browser.contents) … … 106 106 acc_payment.creation_date -= delta 107 107 self.browser.open(self.payments_path + '/xyz') 108 self.browser.getLink(" CollegePAY", index=0).click()108 self.browser.getLink("Pay via Interswitch", index=0).click() 109 109 self.assertMatches( 110 110 '...This payment ticket is too old. Please create a new ticket...', … … 113 113 acc_payment.creation_date += delta 114 114 self.browser.open(self.payments_path + '/xyz') 115 self.browser.getLink(" CollegePAY", index=0).click()115 self.browser.getLink("Pay via Interswitch", index=0).click() 116 116 self.assertMatches('...Total Amount Authorized:...', 117 117 self.browser.contents) … … 232 232 def test_interswitch_form(self): 233 233 # Manager can access InterswitchForm 234 self.browser.getLink(" CollegePAY", index=0).click()234 self.browser.getLink("Pay via Interswitch", index=0).click() 235 235 self.assertMatches('...Total Amount Authorized:...', 236 236 self.browser.contents) … … 241 241 self.applicant.values()[0].creation_date -= delta 242 242 self.browser.open(self.payment_url) 243 self.browser.getLink(" CollegePAY", index=0).click()243 self.browser.getLink("Pay via Interswitch", index=0).click() 244 244 self.assertMatches( 245 245 '...This payment ticket is too old. Please create a new ticket...',
Note: See TracChangeset for help on using the changeset viewer.