- Timestamp:
- 23 Jul 2014, 15:42:39 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py
r11760 r11768 303 303 self.assertEqual(self.student['payments'][value].thirdparty_amt, 200.0) 304 304 305 self.app['configuration']['2004'].loss_idcard_fee = 10 00.0305 self.app['configuration']['2004'].loss_idcard_fee = 1015.0 306 306 self.browser.open(self.payments_path + '/addop') 307 307 self.browser.getControl(name="form.p_category").value = ['loss_idcard'] … … 312 312 self.assertMatches('...Amount Authorized...', self.browser.contents) 313 313 self.assertMatches( 314 '...<span>10 00.0</span>...', self.browser.contents)315 self.payment_url = self.browser.url 316 self.browser.getLink("CollegePAY", index=0).click() 317 self.assertEqual(self.student['payments'][value].amount_auth, 10 00.0)314 '...<span>1015.0</span>...', self.browser.contents) 315 self.payment_url = self.browser.url 316 self.browser.getLink("CollegePAY", index=0).click() 317 self.assertEqual(self.student['payments'][value].amount_auth, 1015.0) 318 318 self.assertEqual(self.student['payments'][value].provider_amt, 9.0) 319 self.assertEqual(self.student['payments'][value].gateway_amt, 15. 0)319 self.assertEqual(self.student['payments'][value].gateway_amt, 15.22) 320 320 self.assertEqual(self.student['payments'][value].thirdparty_amt, 6.0) 321 321 … … 371 371 self.assertEqual(self.student['payments'][value].thirdparty_amt, 200.0) 372 372 373 self.app['configuration']['2004'].loss_idcard_fee = 3000.0373 self.app['configuration']['2004'].loss_idcard_fee = 1900.0 374 374 self.browser.open(self.payments_path + '/addop') 375 375 self.browser.getControl(name="form.p_category").value = ['loss_idcard'] … … 380 380 self.assertMatches('...Amount Authorized...', self.browser.contents) 381 381 self.assertMatches( 382 '...<span> 3000.0</span>...', self.browser.contents)383 self.payment_url = self.browser.url 384 self.browser.getLink("CollegePAY", index=0).click() 385 self.assertEqual(self.student['payments'][value].amount_auth, 3000.0)382 '...<span>1900.0</span>...', self.browser.contents) 383 self.payment_url = self.browser.url 384 self.browser.getLink("CollegePAY", index=0).click() 385 self.assertEqual(self.student['payments'][value].amount_auth, 1900.0) 386 386 self.assertEqual(self.student['payments'][value].provider_amt, 9.0) 387 self.assertEqual(self.student['payments'][value].gateway_amt, 15.0)387 self.assertEqual(self.student['payments'][value].gateway_amt, 28.5) 388 388 self.assertEqual(self.student['payments'][value].thirdparty_amt, 6.0) 389 389
Note: See TracChangeset for help on using the changeset viewer.