Ignore:
Timestamp:
9 Nov 2015, 11:53:23 (9 years ago)
Author:
Henrik Bettermann
Message:

Fetch hostel maintenance fee from hostel object.

File:
1 edited

Legend:

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

    r13416 r13418  
    309309        self.browser.getControl(name="form.password").value = 'spwd'
    310310        self.browser.getControl("Login").click()
     311        # Test school fee payments
    311312        self.browser.open(self.student_path + '/payments')
    312313        self.browser.getLink("Add current session payment ticket").click()
     
    325326        open(path, 'wb').write(self.browser.contents)
    326327        print "Sample PDF payment_slip.pdf written to %s" % path
     328        # Test hostel maintenance payments
     329        self.browser.open(self.student_path + '/payments')
     330        self.browser.getLink("Add current session payment ticket").click()
     331        self.browser.getControl(name="form.p_category").value = ['hostel_maintenance']
     332        self.browser.getControl("Create ticket").click()
     333        self.assertTrue('ticket created' in self.browser.contents)
     334        ctrl = self.browser.getControl(name='val_id')
     335        value = ctrl.options[1]
     336        self.browser.getLink(value).click()
     337        self.assertTrue('<span>My bed coordinates</span>' in self.browser.contents)
     338        self.assertEqual(self.student['payments'][value].amount_auth, 876.0)
    327339        return
    328340
Note: See TracChangeset for help on using the changeset viewer.