Store source and line in the "raw" node generated by raw-derived roles.
[docutils.git] / test / test__init__.py
blob93d2d4bc50c07df06d342c5a80d114fc0b820f2c
1 #! /usr/bin/env python
2 # .. coding: utf8
3 # $Id$
4 # Author: Günter Milde <milde@users.sourceforge.net>
5 # Copyright: This module has been placed in the public domain.
7 """
8 Test module for the docutils' __init__.py.
9 """
11 import unittest
12 import sys
13 import DocutilsTestSupport # must be imported before docutils
14 import docutils
16 class ApplicationErrorTests(unittest.TestCase):
18 def test_message(self):
19 err = docutils.ApplicationError('the message')
20 self.assertEquals(unicode(err), u'the message')
22 def test_non_ASCII_message(self):
23 err = docutils.ApplicationError(u'\u0169')
24 self.assertEquals(unicode(err), u'\u0169')
27 if __name__ == '__main__':
28 unittest.main()