Changeset 13043 for main/waeup.aaue/trunk/src/waeup/aaue/students/tests
- Timestamp:
- 12 Jun 2015, 07:27:02 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r13038 r13043 173 173 self.assertEqual(self.browser.headers['Status'], '200 Ok') 174 174 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 175 # If school fee ticket is paid ... 175 # If school fee ticket is paid, the student is automatically set to 176 # school fee paid... 176 177 ticket = self.student['payments'][sfpt_value].approveStudentPayment() 178 self.assertEqual(self.student.state, 'school fee paid') 177 179 # ... no further school fee ticket can be added. 178 180 self.browser.open(self.payments_path + '/addop') 179 181 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 180 182 self.browser.getControl("Create ticket").click() 181 self.assertMatches('... This type of payment has already been made...',183 self.assertMatches('...Wrong state...', 182 184 self.browser.contents) 183 185 self.browser.open(self.payments_path + '/addop')
Note: See TracChangeset for help on using the changeset viewer.