Ignore:
Timestamp:
15 May 2014, 07:08:46 (11 years ago)
Author:
Henrik Bettermann
Message:

Configure all types school fees and clearance (acceptance) fees in session configuration objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py

    r11627 r11653  
    5151        self.app['configuration']['2004'].maint_fee = 180.0
    5252        self.app['configuration']['2004'].clearance_fee = 1234.0
     53        self.app['configuration']['2004'].clearance_fee_fp = 3456.0
    5354        self.app['configuration']['2004'].school_fee_1 = 6666.0
    5455        utils = getUtility(IStudentsUtils)
     
    8990        self.assertEqual(payment.p_session, 2004)
    9091        self.assertEqual(payment.amount_auth, 1234.0)
     92        self.assertEqual(payment.p_item, u'CERT1')
     93        self.assertEqual(error, None)
     94
     95        self.app['faculties']['fac1'].code = u'FP'
     96        error, payment = utils.setPaymentDetails('clearance',self.student)
     97        self.assertEqual(payment.p_level, 100)
     98        self.assertEqual(payment.p_session, 2004)
     99        self.assertEqual(payment.amount_auth, 3456.0)
    91100        self.assertEqual(payment.p_item, u'CERT1')
    92101        self.assertEqual(error, None)
Note: See TracChangeset for help on using the changeset viewer.