Ignore:
Timestamp:
29 Apr 2012, 06:26:08 (13 years ago)
Author:
Henrik Bettermann
Message:

Configure school fee calculation.

File:
1 edited

Legend:

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

    r8294 r8306  
    166166        ticket = self.student['payments'].items()[0][1]
    167167        ticket.p_state = 'paid'
    168         IWorkflowState(self.student).setState('returning')
    169168        self.browser.open(self.payments_path + '/addop')
    170169        self.browser.getControl("Create ticket").click()
     
    206205        self.assertMatches('...ticket created...',
    207206                           self.browser.contents)
    208         self.certificate.study_mode = 'ug_pt'
    209207        self.browser.open(self.payments_path + '/addop')
    210208        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    211209        self.browser.getControl("Create ticket").click()
     210        self.assertMatches('...ticket created...',
     211                           self.browser.contents)
     212        # In state returning we can add a new school fee ticket since
     213        # p_session and p_level is different
     214        IWorkflowState(self.student).setState('returning')
     215        self.browser.open(self.payments_path + '/addop')
     216        self.browser.getControl(name="form.p_category").value = ['schoolfee']
     217        self.browser.getControl("Create ticket").click()
     218        self.assertMatches('...ticket created...',
     219                           self.browser.contents)
     220        IWorkflowState(self.student).setState('admitted')
     221        self.browser.open(self.payments_path + '/addop')
     222        self.browser.getControl(name="form.p_category").value = ['schoolfee']
     223        self.browser.getControl("Create ticket").click()
    212224        self.assertMatches('...Amount could not be determined...',
    213225                           self.browser.contents)
    214226
    215         # If the session configuration doesn't exist and error message will
    216         # be shown
     227        # If the session configuration doesn't exist an error message will
     228        # be shown. No other requirement is being checked.
    217229        del self.app['configuration']['2004']
    218230        self.browser.open(self.payments_path)
Note: See TracChangeset for help on using the changeset viewer.