Ignore:
Timestamp:
18 May 2012, 00:17:07 (13 years ago)
Author:
uli
Message:

Use SAMPLE_IMAGE and correct typo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r8467 r8468  
    578578        self.browser.getControl(
    579579            name='upload_birthcertificateupload').click()
    580         self.assertTrue('Only the following extension are allowed'
     580        self.assertTrue('Only the following extensions are allowed'
    581581            in self.browser.contents)
    582582        # Managers can delete files
     
    11321132        self.browser.open(self.student_path + '/change_portrait')
    11331133        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')
    11361135        file_ctrl = ctrl.mech_control
    11371136        file_ctrl.add_file(file_obj, filename='my_photo.jpg')
     
    11801179        # Students can upload documents
    11811180        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')
    11841182        file_ctrl = ctrl.mech_control
    11851183        file_ctrl.add_file(file_obj, filename='my_birth_certificate.jpg')
Note: See TracChangeset for help on using the changeset viewer.