Ignore:
Timestamp:
7 Feb 2015, 10:25:56 (10 years ago)
Author:
Henrik Bettermann
Message:

Add new application category and type (ticket #966).

Implement hostel application fee payment (ticket #959). Uniben is still waiting for an agrrement with Interwsicth.

File:
1 edited

Legend:

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

    r11787 r12566  
    202202            'item_name="BT Education"' in self.browser.contents)
    203203
     204        # Create hostel application ticket
     205        self.browser.open(self.payments_path + '/addop')
     206        self.browser.getControl(name="form.p_category").value = ['hostel_application']
     207        self.browser.getControl("Create ticket").click()
     208        ctrl = self.browser.getControl(name='val_id')
     209        value = ctrl.options[3]
     210        self.browser.getLink(value).click()
     211        self.assertMatches(
     212            '...<span>1000.0</span>...',
     213            self.browser.contents)
     214        self.student['payments'][value].approve()
     215
    204216        # Create temp maint fee ticket
    205217        self.browser.open(self.payments_path + '/addop')
     
    207219        self.browser.getControl("Create ticket").click()
    208220        ctrl = self.browser.getControl(name='val_id')
    209         value = ctrl.options[3]
     221        value = ctrl.options[4]
    210222        self.browser.getLink(value).click()
    211223        self.assertMatches(
     
    224236            self.browser.contents)
    225237        self.assertMatches(
    226             '...<item_detail item_id="1" item_name="Hostel Maintenance Fee" item_amt="800000" bank_id="17" acct_num="0009598925" />...',
     238            '...<item_detail item_id="1" item_name="Hostel Maintenance Fee" item_amt="800000" bank_id="129" acct_num="0014419432" />...',
    227239            self.browser.contents)
    228240        self.assertFalse(
     
    269281        self.browser.getControl("Create ticket").click()
    270282        ctrl = self.browser.getControl(name='val_id')
    271         value = ctrl.options[4]
     283        value = ctrl.options[5]
    272284        self.browser.getLink(value).click()
    273285        self.assertMatches(
Note: See TracChangeset for help on using the changeset viewer.