Ignore:
Timestamp:
5 Mar 2013, 21:39:26 (12 years ago)
Author:
Henrik Bettermann
Message:

Restrict school fee payment to cleared and returning students.

Add school fee for ug_ft.

File:
1 edited

Legend:

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

    r10010 r10012  
    9696        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    9797        self.browser.getControl("Create ticket").click()
    98         self.assertMatches('...Amount could not be determined...',
     98        self.assertMatches('...Wrong state...',
    9999                           self.browser.contents)
    100100        IWorkflowState(self.student).setState('cleared')
     
    184184        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    185185        self.browser.getControl("Create ticket").click()
    186         self.assertMatches('...Amount could not be determined...',
     186        self.assertMatches('...Wrong state...',
    187187                           self.browser.contents)
    188188
     
    223223        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    224224        self.assertEqual(payment, None)
    225         self.assertEqual(error, u'Amount could not be determined.')
     225        self.assertEqual(error, u'Wrong state.')
    226226
    227227        IWorkflowState(self.student).setState('cleared')
     228        self.certificate.study_mode = 'nce_ft'
    228229        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    229230        self.assertEqual(payment.p_level, 100)
     
    244245        self.assertEqual(payment.amount_auth, 11545.0)
    245246        self.assertEqual(payment.p_item, u'CERT1')
     247        self.assertEqual(error, None)
     248
     249        # UG students pay 65150
     250        self.certificate.study_mode = 'ug_ft'
     251        error, payment = utils.setPaymentDetails('schoolfee',self.student)
     252        self.assertEqual(payment.amount_auth, 65150.0)
    246253        self.assertEqual(error, None)
    247254
Note: See TracChangeset for help on using the changeset viewer.