Commit 953e369c authored by Rafael Monnerat's avatar Rafael Monnerat

Form printout returns a string.

Since the change on form printout at:

http://git.erp5.org/gitweb/erp5.git/commitdiff/27a5ab925eb96c10455ca079b829fb1f58509e7a

The output is a string.
parent e61e8833
...@@ -1161,13 +1161,13 @@ return [] ...@@ -1161,13 +1161,13 @@ return []
printout = foo_printout(REQUEST=self.portal.REQUEST) printout = foo_printout(REQUEST=self.portal.REQUEST)
#test_output = open("/tmp/test_99_OOoConversion.pdf", "w") #test_output = open("/tmp/test_99_OOoConversion.pdf", "w")
#test_output.write(printout.data) #test_output.write(printout.data)
self.assertEqual('application/pdf', guessMime(printout.data)) self.assertEqual('application/pdf', guessMime(printout))
self.portal.REQUEST.set('format', 'doc') self.portal.REQUEST.set('format', 'doc')
printout = foo_printout(REQUEST=self.portal.REQUEST) printout = foo_printout(REQUEST=self.portal.REQUEST)
#test_output = open("/tmp/test_99_OOoConversion.doc", "w") #test_output = open("/tmp/test_99_OOoConversion.doc", "w")
#test_output.write(printout.data) #test_output.write(printout.data)
self.assertEqual('application/msword', guessMime(printout.data)) self.assertEqual('application/msword', guessMime(printout))
def test_09_FieldReplacement(self, validate=False): def test_09_FieldReplacement(self, validate=False):
"""test field in ODF Documents""" """test field in ODF 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