Changeset 8984 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 12 Jul 2012, 14:37:54 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r8983 r8984 493 493 self.browser.headers['content-length'], str(PH_LEN)) 494 494 495 def test_applicant_login(self): 496 self.applicant.suspended = True 497 self.login() 498 self.assertTrue( 499 'You entered invalid credentials.' in self.browser.contents) 500 self.applicant.suspended = False 501 self.browser.getControl("Login").click() 502 self.assertTrue( 503 'You logged in.' in self.browser.contents) 504 495 505 def test_applicant_access(self): 496 506 # Applicants can edit their record 497 507 self.browser.open(self.login_path) 498 508 self.login() 509 self.assertTrue( 510 'You logged in.' in self.browser.contents) 499 511 self.browser.open(self.edit_path) 500 512 self.assertTrue(self.browser.url != self.login_path) -
main/waeup.kofa/trunk/src/waeup/kofa/authentication.txt
r7819 r8984 177 177 >>> browser.getControl(name='form.password').value = 'invalidpw' 178 178 >>> browser.getControl('Login').click() 179 >>> 'You entered wrongcredentials' in browser.contents179 >>> 'You entered invalid credentials' in browser.contents 180 180 True 181 181 -
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r8920 r8984 193 193 self.redirect(self.camefrom) 194 194 return 195 self.flash(_('You entered wrongcredentials.'))195 self.flash(_('You entered invalid credentials.')) 196 196 197 197 -
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.