- Timestamp:
- 28 Oct 2019, 07:12:20 (5 years ago)
- Location:
- main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/interswitch/browser.py
r15696 r15704 99 99 </payment_item_detail>""" % xmldict 100 100 self.xml_data = """<input type="hidden" name="xml_data" value='%s' />""" % xmltext 101 102 self.xml_data = None103 104 101 self.context.provider_amt = provider_amt 105 102 self.context.gateway_amt = GATEWAY_AMT -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/interswitch/tests.py
r15696 r15704 71 71 '<span>40000.0</span>' in self.browser.contents) 72 72 self.payment_url = self.browser.url 73 self.browser.getLink(" CollegePAY", index=0).click()74 self.assertTrue('<input type="hidden" name="pay_item_id" value=" 0000" />' in73 self.browser.getLink("Pay via Interswitch", index=0).click() 74 self.assertTrue('<input type="hidden" name="pay_item_id" value="103" />' in 75 75 self.browser.contents) 76 76 self.assertEqual(self.student.current_mode, 'ug_ft') … … 92 92 self.student['payments']['xyz'] = acc_payment 93 93 self.browser.open(self.payments_path + '/xyz') 94 self.browser.getLink(" CollegePAY", index=0).click()95 self.assertMatches('...<input type="hidden" name="pay_item_id" value=" 0000" />...',94 self.browser.getLink("Pay via Interswitch", index=0).click() 95 self.assertMatches('...<input type="hidden" name="pay_item_id" value="103" />...', 96 96 self.browser.contents) 97 97 self.assertMatches('...Total Amount Authorized:...', … … 104 104 acc_payment.creation_date -= delta 105 105 self.browser.open(self.payments_path + '/xyz') 106 self.browser.getLink(" CollegePAY", index=0).click()106 self.browser.getLink("Pay via Interswitch", index=0).click() 107 107 self.assertMatches( 108 108 '...This payment ticket is too old. Please create a new ticket...', … … 111 111 acc_payment.creation_date += delta 112 112 self.browser.open(self.payments_path + '/xyz') 113 self.browser.getLink(" CollegePAY", index=0).click()113 self.browser.getLink("Pay via Interswitch", index=0).click() 114 114 self.assertMatches('...Total Amount Authorized:...', 115 115 self.browser.contents) … … 230 230 def test_interswitch_form(self): 231 231 # Manager can access InterswitchForm 232 self.browser.getLink(" CollegePAY", index=0).click()232 self.browser.getLink("Pay via Interswitch", index=0).click() 233 233 self.assertMatches('...Total Amount Authorized:...', 234 234 self.browser.contents) … … 239 239 self.applicant.values()[0].creation_date -= delta 240 240 self.browser.open(self.payment_url) 241 self.browser.getLink(" CollegePAY", index=0).click()241 self.browser.getLink("Pay via Interswitch", index=0).click() 242 242 self.assertMatches( 243 243 '...This payment ticket is too old. Please create a new ticket...',
Note: See TracChangeset for help on using the changeset viewer.