Changeset 6695 for main/waeup.sirp/trunk/src/waeup/sirp/students/tests
- Timestamp:
- 9 Sep 2011, 06:03:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py
r6694 r6695 199 199 self.assertEqual(self.browser.headers['Status'], '200 Ok') 200 200 self.assertEqual(self.browser.url, self.student_path) 201 self.browser.getLink(" Edit").click()201 self.browser.getLink("Manage").click() 202 202 self.assertEqual(self.browser.headers['Status'], '200 Ok') 203 203 self.assertEqual(self.browser.url, self.manage_student_path) … … 213 213 self.assertEqual(self.browser.headers['Status'], '200 Ok') 214 214 self.assertEqual(self.browser.url, self.clearance_student_path) 215 self.browser.getLink(" Edit").click()215 self.browser.getLink("Manage").click() 216 216 self.assertEqual(self.browser.headers['Status'], '200 Ok') 217 217 self.assertEqual(self.browser.url, self.edit_clearance_student_path) … … 221 221 self.assertEqual(self.browser.headers['Status'], '200 Ok') 222 222 self.assertEqual(self.browser.url, self.personal_student_path) 223 self.browser.getLink(" Edit").click()223 self.browser.getLink("Manage").click() 224 224 self.assertEqual(self.browser.headers['Status'], '200 Ok') 225 225 self.assertEqual(self.browser.url, self.edit_personal_student_path) … … 229 229 self.assertEqual(self.browser.headers['Status'], '200 Ok') 230 230 self.assertEqual(self.browser.url, self.studycourse_student_path) 231 self.browser.getLink(" Edit").click()232 self.assertTrue(' Editstudy course' in self.browser.contents)231 self.browser.getLink("Manage").click() 232 self.assertTrue('Manage study course' in self.browser.contents) 233 233 234 234 self.browser.open(self.student_path) … … 274 274 # We can login again with the new password 275 275 self.browser.getLink("Login").click() 276 #self.browser.open(self.login_path)276 self.browser.open(self.login_path) 277 277 self.browser.getControl(name="form.login").value = self.test_student_id 278 278 self.browser.getControl(name="form.password").value = 'new_password' … … 280 280 self.assertEqual(self.browser.url, self.student_path) 281 281 self.assertTrue('You logged in' in self.browser.contents) 282 return 282 283 return
Note: See TracChangeset for help on using the changeset viewer.