Changeset 9304 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 6 Oct 2012, 17:27:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9283 r9304 1163 1163 # Students can access their own objects 1164 1164 # and can perform actions 1165 # Student cant login if their password is not set 1166 self.student.password = None 1167 self.browser.open(self.login_path) 1168 self.browser.getControl(name="form.login").value = self.student_id 1169 self.browser.getControl(name="form.password").value = 'spwd' 1170 self.browser.getControl("Login").click() 1171 self.assertTrue( 1172 'You entered invalid credentials.' in self.browser.contents) 1173 import pdb; pdb.set_trace() 1174 # We set the password again. 1175 IUserAccount( 1176 self.app['students'][self.student_id]).setPassword('spwd') 1165 1177 IWorkflowInfo(self.student).fireTransition('admit') 1166 1178 # Students can't login if their account is suspended/deactivated
Note: See TracChangeset for help on using the changeset viewer.