Ignore:
Timestamp:
23 Jul 2014, 15:42:39 (10 years ago)
Author:
Henrik Bettermann
Message:

If the total amount (amount authorized) is less than 2000 Nairas gateway_amt is 1.5% of the amount authorized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py

    r11760 r11768  
    303303        self.assertEqual(self.student['payments'][value].thirdparty_amt, 200.0)
    304304
    305         self.app['configuration']['2004'].loss_idcard_fee = 1000.0
     305        self.app['configuration']['2004'].loss_idcard_fee = 1015.0
    306306        self.browser.open(self.payments_path + '/addop')
    307307        self.browser.getControl(name="form.p_category").value = ['loss_idcard']
     
    312312        self.assertMatches('...Amount Authorized...', self.browser.contents)
    313313        self.assertMatches(
    314             '...<span>1000.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, 1000.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)
    318318        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)
    320320        self.assertEqual(self.student['payments'][value].thirdparty_amt, 6.0)
    321321
     
    371371        self.assertEqual(self.student['payments'][value].thirdparty_amt, 200.0)
    372372
    373         self.app['configuration']['2004'].loss_idcard_fee = 3000.0
     373        self.app['configuration']['2004'].loss_idcard_fee = 1900.0
    374374        self.browser.open(self.payments_path + '/addop')
    375375        self.browser.getControl(name="form.p_category").value = ['loss_idcard']
     
    380380        self.assertMatches('...Amount Authorized...', self.browser.contents)
    381381        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)
    386386        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)
    388388        self.assertEqual(self.student['payments'][value].thirdparty_amt, 6.0)
    389389
Note: See TracChangeset for help on using the changeset viewer.