Changeset 14897 for main/waeup.uniben/trunk/src/waeup/uniben/students/tests
- Timestamp:
- 14 Nov 2017, 11:08:44 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r14893 r14897 325 325 # self.browser.contents) 326 326 #self.browser.open(self.payments_path + '/addop') 327 # We can't test clearance payment ticket creation at the moment, 328 # since Uniben decided to deactivate clearance for ug students.329 #self.browser.getControl(name="form.p_category").value = ['clearance']330 #self.browser.getControl("Create ticket").click()331 #self.assertMatches('...ticket created...',332 #self.browser.contents)327 328 self.browser.getControl(name="form.p_category").value = ['clearance'] 329 self.browser.getControl("Create ticket").click() 330 self.assertMatches('...ticket created...', 331 self.browser.contents) 332 self.assertTrue('<td>60000.0</td>' in self.browser.contents) 333 333 self.browser.open(self.payments_path + '/addop') 334 334 self.browser.getControl(name="form.p_category").value = ['schoolfee'] … … 351 351 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 352 352 self.browser.getControl("Create ticket").click() 353 354 353 355 354 #self.assertMatches('...You have not yet paid your current/active session...', … … 360 359 #self.browser.getControl(name="form.p_category").value = ['schoolfee'] 361 360 #self.browser.getControl("Create ticket").click() 362 363 361 364 362 self.assertMatches('...ticket created...', … … 640 638 self.assertEqual(payment.p_level, 100) 641 639 self.assertEqual(payment.p_session, 2004) 642 self.assertEqual(payment.amount_auth, 45000.0)640 self.assertEqual(payment.amount_auth, 60000.0) 643 641 self.assertEqual(payment.p_item, u'CERT1') 644 642 self.assertEqual(error, None)
Note: See TracChangeset for help on using the changeset viewer.