Changeset 6487
- Timestamp:
- 29 Jun 2011, 14:44:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py
r6484 r6487 210 210 self.browser.getControl(name="form.lastname").value = 'Tester' 211 211 self.browser.getControl(name="form.course1").value = ['CERT1'] 212 self.browser.getControl(name="form.course_admitted").value = ['CERT1'] 213 self.browser.getControl(name="form.date_of_birth").value = '09/09/1988' 214 self.browser.getControl(name="form.lga").value = ['foreigner'] 215 self.browser.getControl(name="form.sex").value = ['m'] 216 self.browser.getControl("Save").click() 217 self.assertMatches('...Form has been saved...', self.browser.contents) 218 return 219 220 def test_edit_applicant(self): 221 # Applicants can edit their record 222 self.login_path = 'http://localhost/app/applicants/app2009/login' 223 self.browser.open(self.login_path) 224 pin = self.pins[2] 225 parts = pin.split('-')[1:] 226 existing_series, existing_number = parts 227 ac_series = self.browser.getControl(name="form.ac_series") 228 ac_series.value = existing_series 229 ac_number = self.browser.getControl(name="form.ac_number") 230 ac_number.value = existing_number 231 self.browser.getControl(name="SUBMIT").click() 232 self.assertTrue(self.browser.url != self.login_path) 233 self.assertEqual(self.browser.headers['Status'], '200 Ok') 234 self.browser.getControl(name="form.firstname").value = 'John' 235 self.browser.getControl(name="form.lastname").value = 'Tester' 236 self.browser.getControl(name="form.course1").value = ['CERT1'] 212 237 self.browser.getControl(name="form.date_of_birth").value = '09/09/1988' 213 238 self.browser.getControl(name="form.lga").value = ['foreigner']
Note: See TracChangeset for help on using the changeset viewer.