Commit 142adc31 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

assert if OOoDocument_print works fine.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28931 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6e2e84ec
...@@ -607,6 +607,13 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -607,6 +607,13 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
self.assertEquals('attachment; filename="import_data_list.pdf"', self.assertEquals('attachment; filename="import_data_list.pdf"',
response.headers['content-disposition']) response.headers['content-disposition'])
# test Print icon works on OOoDocument
response = self.publish('%s/OOoDocument_print' % doc.getPath())
self.assertEquals('application/pdf',
response.headers['content-type'])
self.assertEquals('attachment; filename="import_data_list.pdf"',
response.headers['content-disposition'])
def test_05_getCreationDate(self): def test_05_getCreationDate(self):
""" """
Check getCreationDate on all document type, as those documents Check getCreationDate on all document type, as those documents
......
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