Changeset 15388 for main/waeup.aaue/trunk/src/waeup/aaue/students/tests
- Timestamp:
- 5 Apr 2019, 12:25:30 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r15379 r15388 25 25 from zope.securitypolicy.interfaces import IPrincipalRoleManager 26 26 from datetime import datetime, timedelta, date 27 from mechanize import LinkNotFoundError 27 from mechanize import LinkNotFoundError, ItemNotFoundError 28 28 from hurry.workflow.interfaces import IWorkflowState 29 29 from zope.event import notify … … 231 231 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 232 232 self.browser.open(self.payments_path + '/addop') 233 self.browser.getControl(name="form.p_category").value = ['schoolfee_1'] 234 self.browser.getControl("Create ticket").click() 235 self.assertTrue( 236 'Part-time students are not allowed' in self.browser.contents) 233 self.assertFalse('schoolfee_1' in self.browser.contents) 234 #self.browser.getControl(name="form.p_category").value = ['schoolfee_1'] 235 #self.browser.getControl("Create ticket").click() 236 #self.assertTrue( 237 # 'Part-time students are not allowed' in self.browser.contents) 237 238 self.student['studycourse'].certificate.study_mode = 'ug_ft' 238 239 self.browser.open(self.payments_path + '/addop') 240 self.assertTrue('schoolfee_1' in self.browser.contents) 239 241 self.browser.getControl(name="form.p_category").value = ['schoolfee_1'] 240 242 self.browser.getControl("Create ticket").click()
Note: See TracChangeset for help on using the changeset viewer.