Ignore:
Timestamp:
22 Mar 2016, 06:20:49 (9 years ago)
Author:
Henrik Bettermann
Message:

School fee payments must not be paid twice.

File:
1 edited

Legend:

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

    r13780 r13786  
    324324        open(path, 'wb').write(self.browser.contents)
    325325        print "Sample PDF payment_slip.pdf written to %s" % path
     326        # Another school fee payment cannot be added
     327        self.student['payments'][value].approve()
     328        self.browser.open(self.student_path + '/payments')
     329        self.browser.getLink("Add current session payment ticket").click()
     330        self.browser.getControl(name="form.p_category").value = ['schoolfee']
     331        self.browser.getControl("Create ticket").click()
     332        self.assertTrue(
     333            'Another school fee payment for this session has already been made'
     334            in self.browser.contents)
    326335        # Test hostel maintenance payments
    327336        self.browser.open(self.student_path + '/payments')
Note: See TracChangeset for help on using the changeset viewer.