Ignore:
Timestamp:
23 Feb 2020, 20:15:50 (5 years ago)
Author:
Henrik Bettermann
Message:

Only NCE 3 students pay third semester fee.

File:
1 edited

Legend:

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

    r16009 r16011  
    289289
    290290        error, payment = utils.setPaymentDetails('third_semester',self.student)
     291        self.assertEqual(error, u'Amount could not be determined.')
     292        self.student['studycourse'].current_level = 300
     293        error, payment = utils.setPaymentDetails('third_semester',self.student)
    291294        self.assertEqual(error, u'Make NCE 3 school fee payment first.')
    292295        payment = createObject('waeup.StudentOnlinePayment')
     
    299302        payment.p_level = 300
    300303        error, payment = utils.setPaymentDetails('third_semester',self.student)
    301         self.assertEqual(payment.p_level, 100)
     304        self.assertEqual(payment.p_level, 300)
    302305        self.assertEqual(payment.p_session, 2004)
    303306        self.assertEqual(payment.amount_auth, 7938)
     
    307310        self.certificate.study_mode = u'nce_sw'
    308311        error, payment = utils.setPaymentDetails('hostel_maintenance',self.student)
    309         self.assertEqual(payment.p_level, 100)
     312        self.assertEqual(payment.p_level, 300)
    310313        self.assertEqual(payment.p_session, 2004)
    311314        self.assertEqual(payment.amount_auth, 547.5)  # 62.5% * 876
     
    314317
    315318        error, payment = utils.setPaymentDetails('bed_allocation',self.student)
    316         self.assertEqual(payment.p_level, 100)
     319        self.assertEqual(payment.p_level, 300)
    317320        self.assertEqual(payment.p_session, 2004)
    318321        self.assertEqual(payment.amount_auth, 150)
Note: See TracChangeset for help on using the changeset viewer.