Ignore:
Timestamp:
13 Oct 2015, 17:29:07 (9 years ago)
Author:
Henrik Bettermann
Message:

Add maint_payment_made method to BedTicket? class.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students/tests
Files:
2 edited

Legend:

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

    r13241 r13314  
    30903090        value = ctrl.options[1]
    30913091        self.assertEqual(self.student['payments'][value].amount_auth, 987.0)
     3092        # The bedticket is aware of successfull maintenance fee payment
     3093        bedticket = self.student['accommodation']['2004']
     3094        self.assertFalse(bedticket.maint_payment_made)
     3095        self.student['payments'][value].approve()
     3096        self.assertTrue(bedticket.maint_payment_made)
    30923097        return
    30933098
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_student.py

    r13002 r13314  
    140140        return
    141141
     142    def test_maint_payment_made(self):
     143        self.assertFalse(self.bedticket.maint_payment_made)
     144        return
     145
     146
    142147class StudentRemovalTests(StudentImportExportSetup):
    143148    # Test handle_student_removed
Note: See TracChangeset for help on using the changeset viewer.