Changeset 15716 for main/waeup.uniben/trunk/src/waeup
- Timestamp:
- 29 Oct 2019, 10:32:34 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r14758 r15716 84 84 def test_interswitch_form(self): 85 85 # Manager can access InterswitchForm 86 self.browser.getLink(" CollegePAY", index=0).click()86 self.browser.getLink("Pay via Interswitch", index=0).click() 87 87 # The total amount to be processed by Interswitch 88 88 # has been reduced by the Interswitch fee of 150 Nairas … … 129 129 self.assertEqual(self.student['payments'][value].gateway_amt, 0.0) 130 130 self.browser.getLink(value).click() 131 self.browser.getLink(" CollegePAY", index=0).click()131 self.browser.getLink("Pay via Interswitch", index=0).click() 132 132 # Split amounts have been set. 133 133 self.assertEqual(self.student['payments'][value].provider_amt, 1500.0) … … 156 156 # self.browser.contents) 157 157 ## Manager can access InterswitchForm 158 #self.browser.getLink(" CollegePAY", index=0).click()158 #self.browser.getLink("Pay via Interswitch", index=0).click() 159 159 #self.assertEqual(self.student['payments'][value].provider_amt, 1500.0) 160 160 #self.assertEqual(self.student['payments'][value].gateway_amt, 150.0) … … 186 186 self.browser.contents) 187 187 # Manager can access InterswitchForm 188 self.browser.getLink(" CollegePAY", index=0).click()188 self.browser.getLink("Pay via Interswitch", index=0).click() 189 189 self.assertEqual(self.student['payments'][value].provider_amt, 0.0) 190 190 self.assertEqual(self.student['payments'][value].gateway_amt, 150.0) … … 223 223 # '<span>8150.0</span>' in self.browser.contents) 224 224 # Manager can access InterswitchForm 225 #self.browser.getLink(" CollegePAY", index=0).click()225 #self.browser.getLink("Pay via Interswitch", index=0).click() 226 226 #self.assertEqual(self.student['payments'][value].provider_amt, 0.0) 227 227 #self.assertEqual(self.student['payments'][value].gateway_amt, 150.0) … … 257 257 # self.browser.contents) 258 258 ## Manager can access InterswitchForm 259 #self.browser.getLink(" CollegePAY", index=0).click()259 #self.browser.getLink("Pay via Interswitch", index=0).click() 260 260 #self.assertEqual(self.student['payments'][value].provider_amt, 1500.0) 261 261 #self.assertEqual(self.student['payments'][value].gateway_amt, 150.0) … … 284 284 '<span>200.0</span>' in self.browser.contents) 285 285 # Manager can access InterswitchForm 286 self.browser.getLink(" CollegePAY", index=0).click()286 self.browser.getLink("Pay via Interswitch", index=0).click() 287 287 self.assertEqual(self.student['payments'][value].provider_amt, 0.0) 288 288 self.assertEqual(self.student['payments'][value].gateway_amt, 150.0) … … 310 310 self.browser.contents) 311 311 # Manager can access InterswitchForm 312 self.browser.getLink(" CollegePAY", index=0).click()312 self.browser.getLink("Pay via Interswitch", index=0).click() 313 313 self.assertEqual(self.student['payments'][value].provider_amt, 0.0) 314 314 self.assertEqual(self.student['payments'][value].gateway_amt, 150.0) … … 357 357 self.student['payments']['xyz'] = acc_payment 358 358 self.browser.open(self.payments_path + '/xyz') 359 self.browser.getLink(" CollegePAY", index=0).click()359 self.browser.getLink("Pay via Interswitch", index=0).click() 360 360 self.assertTrue('<input type="hidden" name="pay_item_id" value="5702" />' 361 361 in self.browser.contents) … … 369 369 acc_payment.creation_date -= delta 370 370 self.browser.open(self.payments_path + '/xyz') 371 self.browser.getLink(" CollegePAY", index=0).click()371 self.browser.getLink("Pay via Interswitch", index=0).click() 372 372 self.assertMatches( 373 373 '...This payment ticket is too old. Please create a new ticket...', … … 376 376 acc_payment.creation_date += delta 377 377 self.browser.open(self.payments_path + '/xyz') 378 self.browser.getLink(" CollegePAY", index=0).click()378 self.browser.getLink("Pay via Interswitch", index=0).click() 379 379 self.assertMatches('...Total Amount Authorized:...', 380 380 self.browser.contents) … … 392 392 value = ctrl.options[1] 393 393 self.browser.getLink(value).click() 394 self.browser.getLink(" CollegePAY", index=0).click()394 self.browser.getLink("Pay via Interswitch", index=0).click() 395 395 self.assertMatches( 396 396 '...alert alert-danger">This type of payment has already been made...', … … 506 506 '<span>1000.0</span>' in self.browser.contents) 507 507 # Manager can access InterswitchForm 508 self.browser.getLink(" CollegePAY", index=0).click()508 self.browser.getLink("Pay via Interswitch", index=0).click() 509 509 self.assertMatches('...Total Amount Authorized:...', 510 510 self.browser.contents) … … 515 515 self.applicant.values()[0].creation_date -= delta 516 516 self.browser.open(self.payment_url) 517 self.browser.getLink(" CollegePAY", index=0).click()517 self.browser.getLink("Pay via Interswitch", index=0).click() 518 518 self.assertMatches( 519 519 '...This payment ticket is too old. Please create a new ticket...',
Note: See TracChangeset for help on using the changeset viewer.