Ignore:
Timestamp:
26 Nov 2024, 02:34:19 (2 months ago)
Author:
Henrik Bettermann
Message:

Let JUPEB students pay by instalments.

File:
1 edited

Legend:

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

    r17885 r17963  
    810810        return
    811811
     812    def test_set_payment_details_jupeb(self):
     813        # JUPEB students can pay by instalments
     814        utils = getUtility(IStudentsUtils)
     815        self.certificate.study_mode = 'found'
     816        IWorkflowState(self.student).setState('cleared')
     817        error, payment = utils.setPaymentDetails(
     818            'schoolfee', self.student, None, None, None)
     819        self.assertEqual(payment.p_level, 100)
     820        self.assertEqual(payment.p_session, 2004)
     821        self.assertEqual(payment.amount_auth, 220000.0)
     822        self.assertEqual(payment.p_item, u'CERT1')
     823        self.assertEqual(error, None)
     824        error, payment = utils.setPaymentDetails(
     825            'schoolfee_1', self.student, None, None, None)
     826        self.assertEqual(payment.p_level, 100)
     827        self.assertEqual(payment.p_session, 2004)
     828        self.assertEqual(payment.amount_auth, 110000.0)
     829        self.assertEqual(payment.p_item, u'CERT1')
     830        self.assertEqual(error, None)
     831        return
     832        error, payment = utils.setPaymentDetails(
     833            'secondinstall', self.student, None, None, None)
     834        self.assertEqual(payment.p_level, 100)
     835        self.assertEqual(payment.p_session, 2004)
     836        self.assertEqual(payment.amount_auth, 110000.0)
     837        self.assertEqual(payment.p_item, u'CERT1')
     838        self.assertEqual(error, None)
     839
    812840    def test_edit_level_by_co(self):
    813841        # Create clearance officer
Note: See TracChangeset for help on using the changeset viewer.