Changeset 9122 for main/waeup.kofa/trunk/src/waeup/kofa/utils/tests
- Timestamp:
- 29 Aug 2012, 11:53:22 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_browser.py
r9022 r9122 35 35 from waeup.kofa.utils.browser import replaceStudentMessages 36 36 from waeup.kofa.students.tests.test_browser import StudentsFullSetup 37 from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup 37 38 38 class UtilsUITests(StudentsFullSetup):39 class StudentUtilsUITests(StudentsFullSetup): 39 40 40 41 layer = FunctionalLayer … … 77 78 results = cat.searchResults(student_id=(None, None)) 78 79 self.assertEqual(len(results),1) 80 81 class ApplicantUtilsUITests(ApplicantsFullSetup): 82 83 layer = FunctionalLayer 84 85 def test_modify_all_applicant_history(self): 86 self.assertTrue('Application initialized by system' in 87 self.applicant.history.messages[0]) 88 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 89 self.browser.open('http://localhost/app/modify_applicant_history') 90 self.assertTrue( 91 'Syntax: /modify_applicant_history?old=[old string]&new=[new string]' 92 in self.browser.contents) 93 self.browser.open( 94 'http://localhost/app/modify_applicant_history?old=by system&new=by me') 95 self.assertTrue('Finished' in self.browser.contents) 96 self.assertTrue('Application initialized by me' in 97 self.applicant.history.messages[0])
Note: See TracChangeset for help on using the changeset viewer.