4 # Author: David Goodger <goodger@python.org>
5 # Copyright: This module has been placed in the public domain.
8 Tests for the 'compound' directive from body.py.
11 from __init__
import DocutilsTestSupport
14 s
= DocutilsTestSupport
.ParserTestSuite()
15 s
.generateTests(totest
)
20 totest
['compound'] = [
24 Compound paragraphs are single logical paragraphs
25 which contain embedded
30 * and other body elements
32 and are split into multiple physical paragraphs.
35 <document source="test data">
38 Compound paragraphs are single logical paragraphs
39 which contain embedded
40 <bullet_list bullet="*">
52 and other body elements
54 and are split into multiple physical paragraphs.
61 This is an extremely interesting compound paragraph containing a
62 simple paragraph, a literal block with some useless log messages::
65 Transmitting data... OK
68 and another simple paragraph which is actually just a continuation
69 of the first simple paragraph, with the literal block in between.
72 <document source="test data">
73 <compound classes="log" ids="interesting" names="interesting">
75 This is an extremely interesting compound paragraph containing a
76 simple paragraph, a literal block with some useless log messages:
77 <literal_block xml:space="preserve">
79 Transmitting data... OK
82 and another simple paragraph which is actually just a continuation
83 of the first simple paragraph, with the literal block in between.
86 .. compound:: content may start on same line
91 <document source="test data">
94 content may start on same line
101 if __name__
== '__main__':
103 unittest
.main(defaultTest
='suite')