Ignore:
Timestamp:
13 Jan 2015, 06:23:01 (10 years ago)
Author:
Henrik Bettermann
Message:

Omit document_id on manage pages. Rename sample.pdf.

File:
1 edited

Legend:

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

    r12447 r12456  
    148148            name='upload_pdfscanmanageupload').click()
    149149        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>'
    151151            in self.browser.contents)
    152152        # The file can be found in the file system
    153153        file = getUtility(IExtFileStore).getFileByContext(
    154             document, attr='sample.pdf')
     154            document, attr='file.pdf')
    155155        file_content = file.read()
    156156        pdf.seek(0)
     
    164164            in self.browser.contents)
    165165        IWorkflowState(document).setState(PUBLISHED)
    166         self.browser.open(self.container_path + '/DOC1/sample.pdf')
     166        self.browser.open(self.container_path + '/DOC1/file.pdf')
    167167        self.assertEqual(
    168168            self.browser.headers['content-type'], 'application/pdf')
     
    190190        # File has been removed too
    191191        file = getUtility(IExtFileStore).getFileByContext(
    192             document, attr='sample.pdf')
     192            document, attr='file.pdf')
    193193        self.assertTrue(file is None)
    194194
     
    208208            % document.document_id in logcontent)
    209209        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)'
    211211            % document.document_id in logcontent)
    212212        self.assertTrue(
Note: See TracChangeset for help on using the changeset viewer.