- Timestamp:
- 19 Dec 2011, 07:58:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_applicantcopier.py
r7355 r7387 75 75 storage = getUtility(IExtFileStore) 76 76 file_id = IFileStoreNameChooser( 77 student).chooseName(attr=' application_slip')77 student).chooseName(attr='passport.jpg') 78 78 fd = storage.getFile(file_id) 79 79 file_len = len(fd.read()) 80 80 self.assertEqual(file_len_orig, file_len) 81 81 # Check if application slip exists 82 file_id = IFileStoreNameChooser( 83 student).chooseName(attr='application_slip') 82 84 self.assertTrue('Applicant Slip' in self.browser.contents) 83 85 self.browser.getLink("Applicant Slip").click() 84 86 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.