Spelling fixes
[docutils.git] / test / test_parsers / test_rst / test_interpreted_fr.py
bloba0e1d7809b4d1effd2a0057ba08422cf3c0e5ed8
1 #! /usr/bin/env python
3 # $Id: test_interpreted.py 6424 2010-09-18 10:43:52Z smerten $
4 # Author: David Goodger <goodger@python.org>
5 # Copyright: This module has been placed in the public domain.
7 """
8 Tests for interpreted text in docutils/parsers/rst/states.py.
9 Test not default/fallback language french.
10 """
12 from __init__ import DocutilsTestSupport
14 def suite():
15 s = DocutilsTestSupport.ParserTestSuite(suite_settings={'language_code':'fr'})
16 s.generateTests(totest)
17 return s
19 totest = {}
21 totest['basics'] = [
22 ["""\
23 Simple explicit roles and english fallbacks:
24 :acronym:`acronym`,
25 :exp:`superscript`,
26 :ind:`subscript`,
27 :titre:`title reference`.
28 """,
29 """\
30 <document source="test data">
31 <paragraph>
32 Simple explicit roles and english fallbacks:
33 <acronym>
34 acronym
36 <superscript>
37 superscript
39 <subscript>
40 subscript
42 <title_reference>
43 title reference
45 <system_message level="1" line="1" source="test data" type="INFO">
46 <paragraph>
47 No role entry for "acronym" in module "docutils.parsers.rst.languages.fr".
48 Using English fallback for role "acronym".
49 """],
52 if __name__ == '__main__':
53 import unittest
54 unittest.main(defaultTest='suite')