Ignore:
Timestamp:
7 Nov 2015, 12:05:48 (9 years ago)
Author:
Henrik Bettermann
Message:

Prepare function for computing the gateway amount dynamically (will be modified on next Monday).

Transaction fee is already embedded in each of the fee items and must this be substracted.

File:
1 edited

Legend:

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

    r13403 r13406  
    121121        self.browser.getLink(self.value).click()
    122122        self.assertTrue('Amount Authorized' in self.browser.contents)
    123         self.assertTrue('<span>51750.0</span>' in self.browser.contents)
     123        # 50250 + 1000 + 500 - 500
     124        self.assertTrue('<span>51250.0</span>' in self.browser.contents)
    124125        self.payment_url = self.browser.url
    125126        self.browser.getLink("CollegePAY", index=0).click()
     
    136137        self.assertEqual(self.student.current_mode, 'ug_pt')
    137138        self.assertTrue(
    138             '<input type="hidden" name="amount" value="5175000" />'
     139            '<input type="hidden" name="amount" value="5125000" />'
    139140            in self.browser.contents)
    140141        self.assertTrue(
     
    203204        self.browser.getLink(self.value).click()
    204205        self.assertTrue('Amount Authorized' in self.browser.contents)
    205         self.assertTrue('<span>43050.0</span>' in  self.browser.contents)
     206        # 40250 + 2000 + 800 -500
     207        self.assertTrue('<span>42550.0</span>' in self.browser.contents)
    206208        self.payment_url = self.browser.url
    207209        self.browser.getLink("CollegePAY", index=0).click()
     
    210212        self.assertTrue('Total Amount Authorized:' in self.browser.contents)
    211213        self.assertTrue(
    212             '<input type="hidden" name="amount" value="4305000" />'
     214            '<input type="hidden" name="amount" value="4255000" />'
    213215            in self.browser.contents)
    214216        self.assertTrue(
Note: See TracChangeset for help on using the changeset viewer.