Changeset 14071


Ignore:
Timestamp:
11 Aug 2016, 10:16:40 (8 years ago)
Author:
Henrik Bettermann
Message:

Adjust tests.

Location:
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch
Files:
2 edited

Legend:

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

    r14070 r14071  
    304304</payment_item_detail>""" % xmldict
    305305
    306         if self.applicant.applicant_id.startswith('pre'):
     306        if self.applicant.applicant_id.startswith('pre') \
     307            and not self.applicant.applicant_id.startswith('prejambites'):
    307308            xmltext = """<payment_item_detail>
    308309<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s">
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py

    r14066 r14071  
    597597        self.assertTrue(
    598598            '<item_detail item_id="1" item_name="Application" '
    599             'item_amt="303300" bank_id="10" acct_num="0106259811" />'
    600             in self.browser.contents)
    601         self.assertFalse('Dalash' in self.browser.contents)
    602         self.assertTrue(
    603             '<item_detail item_id="2" item_name="BT Education" '
    604             'item_amt="26250" bank_id="117" acct_num="1010764827" />'
     599            'item_amt="253300" bank_id="10" acct_num="0106259811" />'
     600            in self.browser.contents)
     601        # No 'commission', no provider fee in 2013
     602        #self.assertFalse('Dalash' in self.browser.contents)
     603        #self.assertFalse('BT Education' in self.browser.contents)
     604        # Comission is charged from 14/09/2014
     605        self.assertTrue(
     606            '<item_detail item_id="2" item_name="Dalash" item_amt="20000" '
     607            'bank_id="117" acct_num="1013196791" />'
     608            in self.browser.contents)
     609        self.assertTrue(
     610            '<item_detail item_id="3" item_name="BT Education" '
     611            'item_amt="30000" bank_id="117" acct_num="1010764827" />'
    605612            in self.browser.contents)
    606613        self.assertTrue(
Note: See TracChangeset for help on using the changeset viewer.