Changeset 8468 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 18 May 2012, 00:17:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r8467 r8468 578 578 self.browser.getControl( 579 579 name='upload_birthcertificateupload').click() 580 self.assertTrue('Only the following extension are allowed'580 self.assertTrue('Only the following extensions are allowed' 581 581 in self.browser.contents) 582 582 # Managers can delete files … … 1132 1132 self.browser.open(self.student_path + '/change_portrait') 1133 1133 ctrl = self.browser.getControl(name='passportuploadedit') 1134 file_obj = open( 1135 os.path.join(os.path.dirname(__file__), 'test_image.jpg'),'rb') 1134 file_obj = open(SAMPLE_IMAGE, 'rb') 1136 1135 file_ctrl = ctrl.mech_control 1137 1136 file_ctrl.add_file(file_obj, filename='my_photo.jpg') … … 1180 1179 # Students can upload documents 1181 1180 ctrl = self.browser.getControl(name='birthcertificateupload') 1182 file_obj = open( 1183 os.path.join(os.path.dirname(__file__), 'test_image.jpg'),'rb') 1181 file_obj = open(SAMPLE_IMAGE, 'rb') 1184 1182 file_ctrl = ctrl.mech_control 1185 1183 file_ctrl.add_file(file_obj, filename='my_birth_certificate.jpg')
Note: See TracChangeset for help on using the changeset viewer.