src/cm/converters/tests/test_convert.py
author raph
Thu, 15 Jul 2010 16:23:58 +0200
changeset 294 c2c262ac1273
parent 0 40c8f766c9b8
permissions -rw-r--r--
do not show permalink if prefix is used in embed params / minified client update
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
import random
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     2
import unittest
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     3
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     4
from cm.converters import convert_from_mimetype
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     5
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
class TestConvert(unittest.TestCase):
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     7
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     8
    def test_oo_convert(self):
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     9
        res, attachs = convert_from_mimetype('cm/converters/tests/data/ooserver_can_convert_me01.doc', 'application/vnd.oasis.opendocument.text', 'markdown')
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    10
        print res
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    11
        
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    12
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    13
if __name__ == '__main__':
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    14
    unittest.main()