Changeset 12456 for main/waeup.kofa/trunk/src/waeup/kofa/documents/tests
- Timestamp:
- 13 Jan 2015, 06:23:01 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/documents/tests/test_browser.py
r12447 r12456 148 148 name='upload_pdfscanmanageupload').click() 149 149 self.assertTrue( 150 'href="http://localhost/app/documents/DOC1/ sample.pdf">DOC1.pdf</a>'150 'href="http://localhost/app/documents/DOC1/file.pdf">DOC1.pdf</a>' 151 151 in self.browser.contents) 152 152 # The file can be found in the file system 153 153 file = getUtility(IExtFileStore).getFileByContext( 154 document, attr=' sample.pdf')154 document, attr='file.pdf') 155 155 file_content = file.read() 156 156 pdf.seek(0) … … 164 164 in self.browser.contents) 165 165 IWorkflowState(document).setState(PUBLISHED) 166 self.browser.open(self.container_path + '/DOC1/ sample.pdf')166 self.browser.open(self.container_path + '/DOC1/file.pdf') 167 167 self.assertEqual( 168 168 self.browser.headers['content-type'], 'application/pdf') … … 190 190 # File has been removed too 191 191 file = getUtility(IExtFileStore).getFileByContext( 192 document, attr=' sample.pdf')192 document, attr='file.pdf') 193 193 self.assertTrue(file is None) 194 194 … … 208 208 % document.document_id in logcontent) 209 209 self.assertTrue( 210 'INFO - zope.mgr - documents.browser.DocumentManageFormPage - %s - uploaded: sample.pdf (my_sample_scan.pdf)'210 'INFO - zope.mgr - documents.browser.DocumentManageFormPage - %s - uploaded: file.pdf (my_sample_scan.pdf)' 211 211 % document.document_id in logcontent) 212 212 self.assertTrue(
Note: See TracChangeset for help on using the changeset viewer.