~ubuntu-branches/ubuntu/hardy/python-docutils/hardy

« back to all changes in this revision

Viewing changes to test/test_parsers/test_rst/test_directives/test_contents.py

  • Committer: Bazaar Package Importer
  • Author(s): martin f. krafft
  • Date: 2006-07-10 11:45:05 UTC
  • mfrom: (2.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20060710114505-otkhqcslevewxmz5
Tags: 0.4-3
Added build dependency on python-central (closes: #377580).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# Author: David Goodger
4
4
# Contact: goodger@users.sourceforge.net
5
 
# Revision: $Revision: 1.14 $
6
 
# Date: $Date: 2004/03/22 01:12:44 $
 
5
# Revision: $Revision: 3915 $
 
6
# Date: $Date: 2005-10-02 03:06:42 +0200 (Sun, 02 Oct 2005) $
7
7
# Copyright: This module has been placed in the public domain.
8
8
 
9
9
"""
25
25
""",
26
26
"""\
27
27
<document source="test data">
28
 
    <topic class="contents" id="contents" name="contents">
 
28
    <topic classes="contents" ids="contents" names="contents">
29
29
        <title>
30
30
            Contents
31
31
        <pending>
38
38
""",
39
39
"""\
40
40
<document source="test data">
41
 
    <topic class="contents" id="table-of-contents" name="table of contents">
 
41
    <topic classes="contents" ids="table-of-contents" names="table\ of\ contents">
42
42
        <title>
43
43
            Table of Contents
44
44
        <pending>
52
52
""",
53
53
"""\
54
54
<document source="test data">
55
 
    <topic class="contents" id="table-of-contents" name="table of contents">
 
55
    <topic classes="contents" ids="table-of-contents" names="table\ of\ contents">
56
56
        <title>
57
57
            Table of Contents
58
58
        <pending>
67
67
""",
68
68
"""\
69
69
<document source="test data">
70
 
    <topic class="contents" id="table-of-contents" name="table of contents">
 
70
    <topic classes="contents" ids="table-of-contents" names="table\ of\ contents">
71
71
        <title>
72
72
            Table
73
73
            of
82
82
""",
83
83
"""\
84
84
<document source="test data">
85
 
    <topic class="contents" id="table-of-contents" name="table of contents">
 
85
    <topic classes="contents" ids="table-of-contents" names="table\ of\ contents">
86
86
        <title>
87
87
            <emphasis>
88
88
                Table
101
101
""",
102
102
"""\
103
103
<document source="test data">
104
 
    <topic class="contents" id="contents" name="contents">
 
104
    <topic classes="contents local" ids="contents" names="contents">
105
105
        <pending>
106
106
            .. internal attributes:
107
107
                 .transform: docutils.transforms.parts.Contents
132
132
""",
133
133
"""\
134
134
<document source="test data">
135
 
    <topic class="contents" id="table-of-contents" name="table of contents">
 
135
    <topic classes="contents local" ids="table-of-contents" names="table\ of\ contents">
136
136
        <title>
137
137
            Table of Contents
138
138
        <pending>
202
202
            .. contents::
203
203
               :backlinks:
204
204
"""],
 
205
["""\
 
206
* .. contents::
 
207
""",
 
208
"""\
 
209
<document source="test data">
 
210
    <bullet_list bullet="*">
 
211
        <list_item>
 
212
            <system_message level="3" line="1" source="test data" type="ERROR">
 
213
                <paragraph>
 
214
                    The "contents" directive may not be used within topics or body elements.
 
215
                <literal_block xml:space="preserve">
 
216
                    .. contents::
 
217
"""],
 
218
["""\
 
219
.. sidebar:: containing contents
 
220
 
 
221
   .. contents::
 
222
""",
 
223
"""\
 
224
<document source="test data">
 
225
    <sidebar>
 
226
        <title>
 
227
            containing contents
 
228
        <topic classes="contents" ids="contents" names="contents">
 
229
            <title>
 
230
                Contents
 
231
            <pending>
 
232
                .. internal attributes:
 
233
                     .transform: docutils.transforms.parts.Contents
 
234
                     .details:
 
235
"""],
205
236
]
206
237
 
207
238