Ignore:
Timestamp:
27 Nov 2012, 15:02:34 (12 years ago)
Author:
Henrik Bettermann
Message:

Setup SELECTABLE_PAYMENT_CATEGORIES dictionary. Uniben students must not see the regular maintenance fee button.

File:
1 edited

Legend:

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

    r9728 r9731  
    221221        self.student.nationality = u'NG'
    222222        self.browser.open(self.payments_path + '/addop')
     223        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    223224        self.browser.getControl("Create ticket").click()
    224225        self.assertMatches('...ticket created...',
     
    237238        ticket.p_state = 'paid'
    238239        self.browser.open(self.payments_path + '/addop')
     240        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    239241        self.browser.getControl("Create ticket").click()
    240242        self.assertMatches('...This type of payment has already been made...',
     
    245247            del self.student['payments'][payment]
    246248        self.browser.open(self.payments_path + '/addop')
     249        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    247250        self.browser.getControl("Create ticket").click()
    248251        self.assertMatches('...ticket created...',
     
    255258                           self.browser.contents)
    256259        self.browser.open(self.payments_path + '/addop')
    257         self.browser.getControl(name="form.p_category").value = ['transfer']
    258         self.browser.getControl("Create ticket").click()
    259         self.assertMatches('...ticket created...',
    260                            self.browser.contents)
    261         self.browser.open(self.payments_path + '/addop')
    262260        self.browser.getControl(
    263             name="form.p_category").value = ['bed_allocation']
     261            name="form.p_category").value = ['tempmaint_1']
    264262        self.browser.getControl("Create ticket").click()
    265263        self.assertMatches('...ticket created...',
     
    267265        self.browser.open(self.payments_path + '/addop')
    268266        self.browser.getControl(
    269             name="form.p_category").value = ['hostel_maintenance']
     267            name="form.p_category").value = ['tempmaint_2']
     268        self.browser.getControl("Create ticket").click()
     269        self.assertMatches('...ticket created...',
     270                           self.browser.contents)
     271        self.browser.open(self.payments_path + '/addop')
     272        self.browser.getControl(
     273            name="form.p_category").value = ['tempmaint_3']
    270274        self.browser.getControl("Create ticket").click()
    271275        self.assertMatches('...ticket created...',
Note: See TracChangeset for help on using the changeset viewer.