Changeset 12441 for main/waeup.kofa/trunk/src/waeup/kofa/documents/tests
- Timestamp:
- 11 Jan 2015, 11:23:48 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/documents/tests/test_browser.py
r12438 r12441 150 150 'href="http://localhost/app/documents/DOC1/sample.pdf">PDF File</a>' 151 151 in self.browser.contents) 152 # The file can be found in the file system 153 file = getUtility(IExtFileStore).getFileByContext( 154 document, attr='sample.pdf') 155 file_content = file.read() 156 pdf.seek(0) 157 pdf_content = pdf.read() 158 self.assertEqual(file_content, pdf_content) 152 159 # Browsing the link shows a real pdf only if the document 153 160 # has been published … … 176 183 self.browser.getControl("Remove selected", index=0).click() 177 184 self.assertTrue('Successfully removed' in self.browser.contents) 185 186 # File has been removed too 187 file = getUtility(IExtFileStore).getFileByContext( 188 document, attr='sample.pdf') 189 self.assertTrue(file is None) 178 190 179 191 # All actions are being logged
Note: See TracChangeset for help on using the changeset viewer.