- Timestamp:
- 18 Nov 2013, 12:24:51 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_browser.py
r10739 r10756 330 330 name='upload_passportuploadedit').click() 331 331 self.browser.open(self.student_path + '/start_clearance') 332 # In Okenethe students can just start clearance without entering332 # In KwaraPoly the students can just start clearance without entering 333 333 # an activation code. 334 334 self.browser.getControl("Start clearance now").click() 335 335 self.assertMatches('...Clearance process has been started...', 336 336 self.browser.contents) 337 338 def test_change_passport(self): 339 self.browser.open(self.login_path) 340 self.browser.getControl(name="form.login").value = self.student_id 341 self.browser.getControl(name="form.password").value = 'spwd' 342 self.browser.getControl("Login").click() 343 344 IWorkflowState(self.student).setState('cleared') 345 self.browser.open(self.student_path + '/change_portrait') 346 image = open(SAMPLE_IMAGE, 'rb') 347 ctrl = self.browser.getControl(name='passportuploadedit') 348 file_ctrl = ctrl.mech_control 349 file_ctrl.add_file(image, filename='my_photo.jpg') 350 self.browser.getControl( 351 name='upload_passportuploadedit').click() 352 337 353 338 354 def test_student_accommodation(self):
Note: See TracChangeset for help on using the changeset viewer.