Changeset 9731 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 27 Nov 2012, 15:02:34 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r9728 r9731 221 221 self.student.nationality = u'NG' 222 222 self.browser.open(self.payments_path + '/addop') 223 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 223 224 self.browser.getControl("Create ticket").click() 224 225 self.assertMatches('...ticket created...', … … 237 238 ticket.p_state = 'paid' 238 239 self.browser.open(self.payments_path + '/addop') 240 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 239 241 self.browser.getControl("Create ticket").click() 240 242 self.assertMatches('...This type of payment has already been made...', … … 245 247 del self.student['payments'][payment] 246 248 self.browser.open(self.payments_path + '/addop') 249 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 247 250 self.browser.getControl("Create ticket").click() 248 251 self.assertMatches('...ticket created...', … … 255 258 self.browser.contents) 256 259 self.browser.open(self.payments_path + '/addop') 257 self.browser.getControl(name="form.p_category").value = ['transfer']258 self.browser.getControl("Create ticket").click()259 self.assertMatches('...ticket created...',260 self.browser.contents)261 self.browser.open(self.payments_path + '/addop')262 260 self.browser.getControl( 263 name="form.p_category").value = [' bed_allocation']261 name="form.p_category").value = ['tempmaint_1'] 264 262 self.browser.getControl("Create ticket").click() 265 263 self.assertMatches('...ticket created...', … … 267 265 self.browser.open(self.payments_path + '/addop') 268 266 self.browser.getControl( 269 name="form.p_category").value = ['hostel_maintenance'] 267 name="form.p_category").value = ['tempmaint_2'] 268 self.browser.getControl("Create ticket").click() 269 self.assertMatches('...ticket created...', 270 self.browser.contents) 271 self.browser.open(self.payments_path + '/addop') 272 self.browser.getControl( 273 name="form.p_category").value = ['tempmaint_3'] 270 274 self.browser.getControl("Create ticket").click() 271 275 self.assertMatches('...ticket created...',
Note: See TracChangeset for help on using the changeset viewer.