4 # Author: Günter Milde <milde@users.sourceforge.net>
5 # Copyright: This module has been placed in the public domain.
8 Test module for the docutils' __init__.py.
13 import DocutilsTestSupport
# must be imported before docutils
16 class ApplicationErrorTests(unittest
.TestCase
):
18 def test_message(self
):
19 err
= docutils
.ApplicationError('the message')
20 self
.assertEqual(unicode(err
), u
'the message')
22 def test_non_ASCII_message(self
):
23 err
= docutils
.ApplicationError(u
'\u0169')
24 self
.assertEqual(unicode(err
), u
'\u0169')
26 class VersionInfoTests(unittest
.TestCase
):
28 def test_version_info(self
):
29 self
.assertEqual(len(docutils
.__version
_info
__), 6)
30 # self.assertEqual(type(docutils.__version_info__.major), int)
31 # self.assertEqual(type(docutils.__version_info__.minor), int)
32 # self.assertEqual(type(docutils.__version_info__.micro), int)
33 # self.assertEqual(type(docutils.__version_info__.releaselevel), str)
34 # self.assertEqual(type(docutils.__version_info__.serial), int)
35 # self.assertEqual(type(docutils.__version_info__.release), bool)
37 if __name__
== '__main__':