4 # Author: David Goodger <goodger@python.org>
5 # Copyright: This module has been placed in the public domain.
8 Tests for the 'container' directive from body.py.
11 from __init__
import DocutilsTestSupport
14 s
= DocutilsTestSupport
.ParserTestSuite()
15 s
.generateTests(totest
)
20 totest
['container'] = [
24 "container" is a generic element, an extension mechanism for
27 Containers may contain arbitrary body elements.
30 <document source="test data">
33 "container" is a generic element, an extension mechanism for
36 Containers may contain arbitrary body elements.
44 <document source="test data">
45 <container classes="custom">
50 .. container:: one two three
57 Multiple paragraphs in the container.
60 <document source="test data">
61 <container classes="one two three four">
67 Multiple paragraphs in the container.
73 The name argument allows hyperlinks to `my name`_.
76 <document source="test data">
77 <container ids="my-name" names="my\ name">
79 The name argument allows hyperlinks to
80 <reference name="my name" refname="my name">
87 if __name__
== '__main__':
89 unittest
.main(defaultTest
='suite')