Changeset 8984 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 12 Jul 2012, 14:37:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r8975 r8984 1147 1147 # and can perform actions 1148 1148 IWorkflowInfo(self.student).fireTransition('admit') 1149 # Students can't login if their account is suspended 1150 self.student.suspended = True 1149 1151 self.browser.open(self.login_path) 1150 1152 self.browser.getControl(name="form.login").value = self.student_id 1151 1153 self.browser.getControl(name="form.password").value = 'spwd' 1152 1154 self.browser.getControl("Login").click() 1155 self.assertTrue( 1156 'You entered invalid credentials.' in self.browser.contents) 1157 self.student.suspended = False 1158 self.browser.getControl("Login").click() 1159 self.assertTrue( 1160 'You logged in.' in self.browser.contents) 1153 1161 # Student can upload a passport picture 1154 1162 self.browser.open(self.student_path + '/change_portrait')
Note: See TracChangeset for help on using the changeset viewer.