Changeset 15697 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 22 Oct 2019, 05:40:55 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_utils.py
r13225 r15697 82 82 return 83 83 84 def test_set_payment_details(self): 85 self.app['configuration']['2004'].gown_fee = 150.0 86 self.app['configuration']['2004'].transcript_fee = 90.0 87 self.app['configuration']['2004'].late_registration_fee = 180.0 88 utils = getUtility(IStudentsUtils) 89 error, payment = utils.setPaymentDetails( 90 'combi',self.student, None, None, 91 ['gown', 'transcript', 'late_registration']) 92 self.assertEqual(payment.p_level, 100) 93 self.assertEqual(payment.p_session, 2004) 94 self.assertEqual(payment.amount_auth, 420.0) 95 self.assertEqual(payment.p_item, 96 u'Gown Hire Fee + Transcript Fee + Late Course Registration Fee') 97 self.assertEqual(payment.p_combi, 98 ['gown', 'transcript', 'late_registration']) 99 return
Note: See TracChangeset for help on using the changeset viewer.