Commit 85991ce1 authored by Nicolas Delaby's avatar Nicolas Delaby

remove out-of-date comment, reviewed by Jerome

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32053 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 47fa7f82
...@@ -807,12 +807,6 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -807,12 +807,6 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
document = self.portal.document_module.newContent(portal_type='PDF') document = self.portal.document_module.newContent(portal_type='PDF')
# Here we use edit instead of setFile, # Here we use edit instead of setFile,
# because only edit method set filename as source_reference. # because only edit method set filename as source_reference.
# This is a feature related to portal_contribution,
# sometimes filename is replaced by value provided by
# rewriteIngestionData type based method.
# setFile should keep value provided by portal_contribution
# instead of reading it from file itself.
# See special parameter set_filename__ in ERP5.Tool.ContributionTool
document.edit(file=upload_file) document.edit(file=upload_file)
self.assertEquals('application/pdf', document.getContentType()) self.assertEquals('application/pdf', document.getContentType())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment