| author | raph |
| Mon, 23 Nov 2009 15:14:29 +0100 | |
| changeset 0 | 40c8f766c9b8 |
| permissions | -rw-r--r-- |
| 0 | 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 |