Commit 603a54cc authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* Format name for 'csv' can be different depending on oood version, so use...

* Format name for 'csv' can be different depending on oood version, so use another name for Base_getConversionFormatItemList() test.
* output of _convertToHTML() can have ' ' instead of ' '.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23686 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7568f920
...@@ -618,7 +618,7 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -618,7 +618,7 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
def test_Base_getConversionFormatItemList(self): def test_Base_getConversionFormatItemList(self):
# tests Base_getConversionFormatItemList script (requires oood) # tests Base_getConversionFormatItemList script (requires oood)
self.assertTrue(('Text CSV', 'csv') in self.assertTrue(('Microsoft Excel 97/2000/XP', 'xls') in
self.portal.Base_getConversionFormatItemList(base_content_type= self.portal.Base_getConversionFormatItemList(base_content_type=
'application/vnd.oasis.opendocument.spreadsheet')) 'application/vnd.oasis.opendocument.spreadsheet'))
self.assertTrue(('DocBook', 'docbook.xml') in self.assertTrue(('DocBook', 'docbook.xml') in
...@@ -738,7 +738,7 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -738,7 +738,7 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
self.assertEquals('I use reference to look up TEST\n', self.assertEquals('I use reference to look up TEST\n',
document._convertToText()) document._convertToText())
self.assert_('I use reference to look up TEST' in self.assert_('I use reference to look up TEST' in
document._convertToHTML()) document._convertToHTML().replace(' ', ' '))
self.assert_('I use reference to look up TEST' in self.assert_('I use reference to look up TEST' in
document.SearchableText()) document.SearchableText())
......
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