Changeset 11728 for main/waeup.uniben/trunk/src/waeup/uniben/interswitch
- Timestamp:
- 3 Jul 2014, 08:17:34 (11 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/interswitch
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r11645 r11728 31 31 EXTERNAL_TESTS = False 32 32 33 SAMPLE_IMAGE = os.path.join(os.path.dirname(__file__), 'test_image.jpg') 34 33 35 def external_test(func): 34 36 if not EXTERNAL_TESTS: … … 405 407 self.browser.open(self.manage_path) 406 408 #IWorkflowState(self.student).setState('started') 409 self.applicantscontainer.application_fee = 1000.0 407 410 super(InterswitchTestsApplicants, self).fill_correct_values() 408 self.applicantscontainer.application_fee = 1000.0 409 self.browser.getControl(name="form.nationality").value = ['NG'] 410 self.browser.getControl(name="transition").value = ['start'] 411 self.browser.getControl("Add online").click() 412 self.assertMatches('...Upload your passport photo before making payment...', 413 self.browser.contents) 414 self.browser.open(self.manage_path) 415 super(InterswitchTestsApplicants, self).fill_correct_values() 416 #self.browser.getControl(name="form.nationality").value = ['NG'] 417 #self.browser.getControl(name="transition").value = ['start'] 418 image = open(SAMPLE_IMAGE, 'rb') 419 ctrl = self.browser.getControl(name='form.passport') 420 file_ctrl = ctrl.mech_control 421 file_ctrl.add_file(image, filename='myphoto.jpg') 411 422 self.browser.getControl("Save").click() 412 423 self.browser.getControl("Add online").click()
Note: See TracChangeset for help on using the changeset viewer.