Changeset 13418 for main/waeup.aaue/trunk/src/waeup/aaue/students/tests
- Timestamp:
- 9 Nov 2015, 11:53:23 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r13416 r13418 309 309 self.browser.getControl(name="form.password").value = 'spwd' 310 310 self.browser.getControl("Login").click() 311 # Test school fee payments 311 312 self.browser.open(self.student_path + '/payments') 312 313 self.browser.getLink("Add current session payment ticket").click() … … 325 326 open(path, 'wb').write(self.browser.contents) 326 327 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) 327 339 return 328 340
Note: See TracChangeset for help on using the changeset viewer.