Commit bb9ffb74 authored by Jérome Perrin's avatar Jérome Perrin

test Base_getConversionFormatItemList


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18726 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f12894ab
...@@ -472,6 +472,14 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -472,6 +472,14 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
self.assertNotEquals(obj.getCreationDate(), self.assertNotEquals(obj.getCreationDate(),
portal.CreationDate()) portal.CreationDate())
def test_Base_getConversionFormatItemList(self):
# tests Base_getConversionFormatItemList script (requires oood)
self.assertTrue(('Text CSV', 'csv') in
self.portal.Base_getConversionFormatItemList(base_content_type=
'application/vnd.oasis.opendocument.spreadsheet'))
self.assertTrue(('DocBook', 'docbook.xml') in
self.portal.Base_getConversionFormatItemList(base_content_type=
'application/vnd.oasis.opendocument.text'))
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
......
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