Ignore:
Timestamp:
16 May 2013, 04:42:47 (12 years ago)
Author:
Henrik Bettermann
Message:

schoolfee_2 payment is state-independent.

File:
1 edited

Legend:

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

    r10180 r10181  
    157157        error, payment = utils.setPaymentDetails('schoolfee_1',self.student)
    158158        self.assertEqual(payment.amount_auth, 80.0)
    159         error, payment = utils.setPaymentDetails('schoolfee_2',self.student)
    160         self.assertEqual(payment.amount_auth, 120.0)
    161159        IWorkflowState(self.student).setState('cleared')
    162160        error, payment = utils.setPaymentDetails('schoolfee_1',self.student)
    163161        self.assertEqual(payment.amount_auth, 40.0)
     162
     163        # schoolfee_2 payment is state-independent
     164        self.student['studycourse'].entry_session = 2003
     165        error, payment = utils.setPaymentDetails('schoolfee_2',self.student)
     166        self.assertEqual(payment.amount_auth, 120.0)
     167        self.student['studycourse'].entry_session = 2004
    164168        error, payment = utils.setPaymentDetails('schoolfee_2',self.student)
    165169        self.assertEqual(payment.amount_auth, 60.0)
Note: See TracChangeset for help on using the changeset viewer.