4 # Author: Lea Wiemann <LeWiemann@gmail.com>
5 # Copyright: This module has been placed in the public domain.
8 Tests for the body.py 'parsed-literal' directive.
11 from __init__
import DocutilsTestSupport
14 s
= DocutilsTestSupport
.ParserTestSuite()
15 s
.generateTests(totest
)
20 totest
['parsed_literals'] = [
24 This is a parsed literal block.
25 It may contain *inline markup
29 <document source="test data">
30 <literal_block xml:space="preserve">
31 This is a parsed literal block.
40 :name: example: parsed
42 This is a parsed literal block with options.
45 <document source="test data">
46 <literal_block classes="myliteral" ids="example-parsed" names="example:\ parsed" xml:space="preserve">
47 This is a parsed literal block with options.
50 .. parsed-literal:: content may start on same line
53 <document source="test data">
54 <literal_block xml:space="preserve">
55 content may start on same line
61 <document source="test data">
62 <system_message level="3" line="1" source="test data" type="ERROR">
64 Content block expected for the "parsed-literal" directive; none found.
65 <literal_block xml:space="preserve">
71 if __name__
== '__main__':
73 unittest
.main(defaultTest
='suite')