Changeset 8984 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 12 Jul 2012, 14:37:54 (13 years ago)
- File:
-
- 1 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)
Note: See TracChangeset for help on using the changeset viewer.