Ignore:
Timestamp:
27 Nov 2012, 15:50:05 (12 years ago)
Author:
Henrik Bettermann
Message:

Add session specific penalty fee.

File:
1 edited

Legend:

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

    r9714 r9732  
    168168        self.assertEqual(payment.amount_auth, 20000.0)
    169169
     170        # Penalty fee is taken into consideration
     171        self.app['configuration']['2005'].penalty_ug = 3000.0
     172        error, payment = utils.setPaymentDetails('schoolfee',self.student)
     173        self.assertEqual(payment.p_level, 200)
     174        self.assertEqual(payment.p_session, 2005)
     175        self.assertEqual(payment.amount_auth, 23000.0)
     176        self.assertEqual(payment.p_item, u'CERT2')
     177        self.assertEqual(error, None)
     178
    170179        error, payment = utils.setPaymentDetails('schoolfee',self.student, 2004, 100)
    171180        self.assertEqual(error, u'Previous session payment not yet implemented.')
Note: See TracChangeset for help on using the changeset viewer.