Ignore:
Timestamp:
25 Oct 2012, 04:10:15 (12 years ago)
Author:
Henrik Bettermann
Message:

Configure bank account details for maintenance fee payment.

File:
1 edited

Legend:

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

    r9386 r9410  
    9999        # Manager can access InterswitchForm
    100100        self.browser.getLink("CollegePAY", index=0).click()
    101         self.assertMatches('...Total Amount Authorized:...',
    102                            self.browser.contents)
    103101        # The total amount to be processed by Interswitch
    104102        # has been reduced by the Interswitch fee of 150 Nairas
     
    114112        self.assertFalse("BT Education" in self.browser.contents)
    115113
     114        # Create hostel maintenance ticket
     115        self.browser.open(self.payments_path + '/addop')
     116        self.browser.getControl(name="form.p_category").value = ['hostel_maintenance']
     117        self.browser.getControl("Create ticket").click()
     118        self.assertMatches('...ticket created...',
     119                           self.browser.contents)
     120        ctrl = self.browser.getControl(name='val_id')
     121        value = ctrl.options[2]
     122        self.browser.getLink(value).click()
     123        self.assertMatches('...Amount Authorized...',
     124                           self.browser.contents)
     125        self.assertMatches(
     126            '...<span>10000.0</span>...',
     127            self.browser.contents)
     128        # Manager can access InterswitchForm
     129        self.browser.getLink("CollegePAY", index=0).click()
     130        # The total amount to be processed by Interswitch
     131        # has been reduced by the Interswitch fee of 150 Nairas
     132        self.assertMatches('...Total Amount Authorized:...',
     133                           self.browser.contents)
     134        self.assertMatches(
     135            '...<input type="hidden" name="amount" value="1000000.0" />...',
     136            self.browser.contents)
     137        self.assertMatches(
     138            '...item_name="Hostel Maintenance Fee" item_amt="970000" bank_id="8" acct_num="2018856637"...',
     139            self.browser.contents)
     140        # BT does nor charge a fee for clearance
     141        self.assertFalse("BT Education" in self.browser.contents)
     142
    116143
    117144    @external_test
Note: See TracChangeset for help on using the changeset viewer.