Changeset 7387 for main


Ignore:
Timestamp:
19 Dec 2011, 07:58:23 (13 years ago)
Author:
uli
Message:

Update tests. Hope I picked the correct passport image name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_applicantcopier.py

    r7355 r7387  
    7575        storage = getUtility(IExtFileStore)
    7676        file_id = IFileStoreNameChooser(
    77             student).chooseName(attr='application_slip')
     77            student).chooseName(attr='passport.jpg')
    7878        fd = storage.getFile(file_id)
    7979        file_len = len(fd.read())
    8080        self.assertEqual(file_len_orig, file_len)
    8181        # Check if application slip exists
     82        file_id = IFileStoreNameChooser(
     83            student).chooseName(attr='application_slip')
    8284        self.assertTrue('Applicant Slip' in self.browser.contents)
    8385        self.browser.getLink("Applicant Slip").click()
    8486        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    85         self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf')
     87        self.assertEqual(self.browser.headers['Content-Type'],
     88                         'application/pdf')
Note: See TracChangeset for help on using the changeset viewer.