Ignore:
Timestamp:
5 Apr 2016, 06:12:48 (9 years ago)
Author:
Henrik Bettermann
Message:

Only new students are allowed to pay acceptance fee.

File:
1 edited

Legend:

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

    r13778 r13800  
    266266
    267267        error, payment = utils.setPaymentDetails('clearance',self.student)
     268        self.assertEqual(error, u'Acceptance Fee payments not allowed.')
     269        IWorkflowState(self.student).setState('cleared')
     270        error, payment = utils.setPaymentDetails('clearance',self.student)
    268271        self.assertEqual(payment.p_level, 100)
    269272        self.assertEqual(payment.p_session, 2004)
     
    403406        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    404407        self.browser.getControl("Create ticket").click()
    405         self.assertMatches('...Payment temporarily disabled...',
     408        self.assertMatches('...This category of payments has been disabled...',
    406409                           self.browser.contents)
    407410        self.certificate.study_mode = 'ug_ft'
Note: See TracChangeset for help on using the changeset viewer.