4 # Author: Guenter Milde
5 # Copyright: This module has been placed in the public domain.
8 Test the 'code' directive in body.py with syntax_highlight = 'none'.
11 from __init__
import DocutilsTestSupport
14 s
= DocutilsTestSupport
.ParserTestSuite(suite_settings
={'syntax_highlight':'none'})
15 s
.generateTests(totest
)
20 totest
['code-parsing-none'] = [
27 <document source="test data">
28 <literal_block classes="code" xml:space="preserve">
39 # and now for something completely different
43 <document source="test data">
44 <literal_block classes="code python" xml:space="preserve">
59 # and now for something completely different
67 hello \emph{world} % emphasize
70 <document source="test data">
71 <literal_block classes="code latex" xml:space="preserve">
72 hello \\emph{world} % emphasize
77 if __name__
== '__main__':
79 unittest
.main(defaultTest
='suite')