src/cm/tests/test_converters.py
changeset 0 40c8f766c9b8
equal deleted inserted replaced
-1:000000000000 0:40c8f766c9b8
       
     1 from django.test import TestCase
       
     2 from django.test.client import Client
       
     3 from django.core import management
       
     4 
       
     5 from cm.converters.pandoc_converters import pandoc_convert, OUTPUT_FORMATS
       
     6 
       
     7 class ConverterTest(TestCase):
       
     8     
       
     9     def test_rst(self):
       
    10         rst =  unicode(file('src/cm/tests/data/text.rst').read())
       
    11         
       
    12         # convert in all formats
       
    13         for to_format in OUTPUT_FORMATS: 
       
    14             res = pandoc_convert(rst,'rst',to_format)
       
    15         
       
    16