Changeset 8306 for main/waeup.uniben/trunk/src/waeup/uniben/students/tests
- Timestamp:
- 29 Apr 2012, 06:26:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r8294 r8306 166 166 ticket = self.student['payments'].items()[0][1] 167 167 ticket.p_state = 'paid' 168 IWorkflowState(self.student).setState('returning')169 168 self.browser.open(self.payments_path + '/addop') 170 169 self.browser.getControl("Create ticket").click() … … 206 205 self.assertMatches('...ticket created...', 207 206 self.browser.contents) 208 self.certificate.study_mode = 'ug_pt'209 207 self.browser.open(self.payments_path + '/addop') 210 208 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 211 209 self.browser.getControl("Create ticket").click() 210 self.assertMatches('...ticket created...', 211 self.browser.contents) 212 # In state returning we can add a new school fee ticket since 213 # p_session and p_level is different 214 IWorkflowState(self.student).setState('returning') 215 self.browser.open(self.payments_path + '/addop') 216 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 217 self.browser.getControl("Create ticket").click() 218 self.assertMatches('...ticket created...', 219 self.browser.contents) 220 IWorkflowState(self.student).setState('admitted') 221 self.browser.open(self.payments_path + '/addop') 222 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 223 self.browser.getControl("Create ticket").click() 212 224 self.assertMatches('...Amount could not be determined...', 213 225 self.browser.contents) 214 226 215 # If the session configuration doesn't exist an derror message will216 # be shown 227 # If the session configuration doesn't exist an error message will 228 # be shown. No other requirement is being checked. 217 229 del self.app['configuration']['2004'] 218 230 self.browser.open(self.payments_path)
Note: See TracChangeset for help on using the changeset viewer.