Changeset 14306 for main/waeup.aaue/trunk/src/waeup/aaue/students/tests
- Timestamp:
- 3 Dec 2016, 08:29:30 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r14288 r14306 38 38 from waeup.kofa.authentication import LocalRoleSetEvent 39 39 from waeup.kofa.browser.tests.test_pdf import samples_dir 40 from waeup.kofa.applicants.container import ApplicantsContainer 40 41 from waeup.aaue.testing import FunctionalLayer 41 42 … … 1107 1108 self.assertEqual(self.browser.headers['Status'], '200 Ok') 1108 1109 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 1110 1111 def test_alumni_request_pw(self): 1112 # Add an applicants container 1113 applicantscontainer = ApplicantsContainer() 1114 applicantscontainer.code = u'trans2017' 1115 applicantscontainer.prefix = 'trans' 1116 applicantscontainer.year = 2017 1117 applicantscontainer.title = u'This is the trans2017 container' 1118 applicantscontainer.application_category = 'no' 1119 applicantscontainer.mode = 'create' 1120 applicantscontainer.strict_deadline = True 1121 delta = timedelta(days=10) 1122 applicantscontainer.startdate = datetime.now(pytz.utc) - delta 1123 applicantscontainer.enddate = datetime.now(pytz.utc) + delta 1124 self.app['applicants']['trans2017'] = applicantscontainer 1125 self.applicantscontainer = self.app['applicants']['trans2017'] 1126 # Student with wrong number can't be found. 1127 # Applicant is redirected to application section. 1128 self.browser.open('http://localhost/app/alumni_requestpw') 1129 self.browser.getControl(name="form.lastname").value = 'Tester' 1130 self.browser.getControl(name="form.number").value = 'anynumber' 1131 self.browser.getControl(name="form.email").value = 'xx@yy.zz' 1132 self.browser.getControl("Send login credentials").click() 1133 self.assertTrue('No student record found.' 1134 in self.browser.contents) 1135 self.assertEqual(self.browser.url, 1136 'http://localhost/app/applicants/trans2017/register')
Note: See TracChangeset for help on using the changeset viewer.