~ubuntu-branches/ubuntu/dapper/python-docutils/dapper

« back to all changes in this revision

Viewing changes to test/test_parsers/test_rst/test_interpreted.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-12-13 13:47:41 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051213134741-fhuh5tq3n346q1oj
Tags: 0.3.9-0.1ubuntu1
Synchronize with Debian unstable.

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.3 $
6
 
# Date: $Date: 2004/04/27 19:53:19 $
 
5
# Revision: $Revision: 3129 $
 
6
# Date: $Date: 2005-03-26 17:21:28 +0100 (Sat, 26 Mar 2005) $
7
7
# Copyright: This module has been placed in the public domain.
8
8
 
9
9
"""
100
100
"""\
101
101
<document source="test data">
102
102
    <paragraph>
103
 
        <problematic id="id2" refid="id1">
 
103
        <problematic ids="id2" refid="id1">
104
104
            `
105
105
        interpreted without closing backquote
106
 
    <system_message backrefs="id2" id="id1" level="2" line="1" source="test data" type="WARNING">
 
106
    <system_message backrefs="id2" ids="id1" level="2" line="1" source="test data" type="WARNING">
107
107
        <paragraph>
108
108
            Inline interpreted text or phrase reference start-string without end-string.
109
109
"""],
191
191
"""\
192
192
<document source="test data">
193
193
    <paragraph>
194
 
        <problematic id="id2" refid="id1">
 
194
        <problematic ids="id2" refid="id1">
195
195
            :PEP:`-1`
196
 
    <system_message backrefs="id2" id="id1" level="3" line="1" source="test data" type="ERROR">
 
196
    <system_message backrefs="id2" ids="id1" level="3" line="1" source="test data" type="ERROR">
197
197
        <paragraph>
198
198
            PEP number must be a number from 0 to 9999; "-1" is invalid.
199
199
"""],
212
212
"""\
213
213
<document source="test data">
214
214
    <paragraph>
215
 
        <problematic id="id2" refid="id1">
 
215
        <problematic ids="id2" refid="id1">
216
216
            :RFC:`0`
217
 
    <system_message backrefs="id2" id="id1" level="3" line="1" source="test data" type="ERROR">
 
217
    <system_message backrefs="id2" ids="id1" level="3" line="1" source="test data" type="ERROR">
218
218
        <paragraph>
219
219
            RFC number must be a number greater than or equal to 1; "0" is invalid.
220
220
"""],
227
227
"""\
228
228
<document source="test data">
229
229
    <paragraph>
230
 
        <problematic id="id2" refid="id1">
 
230
        <problematic ids="id2" refid="id1">
231
231
            :role:`interpreted`
232
232
    <system_message level="1" line="1" source="test data" type="INFO">
233
233
        <paragraph>
234
234
            No role entry for "role" in module "docutils.parsers.rst.languages.en".
235
235
            Trying "role" as canonical role name.
236
 
    <system_message backrefs="id2" id="id1" level="3" line="1" source="test data" type="ERROR">
 
236
    <system_message backrefs="id2" ids="id1" level="3" line="1" source="test data" type="ERROR">
237
237
        <paragraph>
238
238
            Unknown interpreted text role "role".
239
239
"""],
243
243
"""\
244
244
<document source="test data">
245
245
    <paragraph>
246
 
        <problematic id="id2" refid="id1">
 
246
        <problematic ids="id2" refid="id1">
247
247
            `interpreted`:role:
248
248
    <system_message level="1" line="1" source="test data" type="INFO">
249
249
        <paragraph>
250
250
            No role entry for "role" in module "docutils.parsers.rst.languages.en".
251
251
            Trying "role" as canonical role name.
252
 
    <system_message backrefs="id2" id="id1" level="3" line="1" source="test data" type="ERROR">
 
252
    <system_message backrefs="id2" ids="id1" level="3" line="1" source="test data" type="ERROR">
253
253
        <paragraph>
254
254
            Unknown interpreted text role "role".
255
255
"""],
259
259
"""\
260
260
<document source="test data">
261
261
    <paragraph>
262
 
        <problematic id="id2" refid="id1">
 
262
        <problematic ids="id2" refid="id1">
263
263
            :role:`interpreted`:role:
264
 
    <system_message backrefs="id2" id="id1" level="2" line="1" source="test data" type="WARNING">
 
264
    <system_message backrefs="id2" ids="id1" level="2" line="1" source="test data" type="WARNING">
265
265
        <paragraph>
266
266
            Multiple roles in interpreted text (both prefix and suffix present; only one allowed).
267
267
"""],
271
271
"""\
272
272
<document source="test data">
273
273
    <paragraph>
274
 
        <problematic id="id2" refid="id1">
 
274
        <problematic ids="id2" refid="id1">
275
275
            :very.long-role_name:`interpreted`
276
276
    <system_message level="1" line="1" source="test data" type="INFO">
277
277
        <paragraph>
278
278
            No role entry for "very.long-role_name" in module "docutils.parsers.rst.languages.en".
279
279
            Trying "very.long-role_name" as canonical role name.
280
 
    <system_message backrefs="id2" id="id1" level="3" line="1" source="test data" type="ERROR">
 
280
    <system_message backrefs="id2" ids="id1" level="3" line="1" source="test data" type="ERROR">
281
281
        <paragraph>
282
282
            Unknown interpreted text role "very.long-role_name".
283
283
"""],
287
287
"""\
288
288
<document source="test data">
289
289
    <paragraph>
290
 
        <problematic id="id2" refid="id1">
 
290
        <problematic ids="id2" refid="id1">
291
291
            :restructuredtext-unimplemented-role:`interpreted`
292
292
    <system_message level="1" line="1" source="test data" type="INFO">
293
293
        <paragraph>
294
294
            No role entry for "restructuredtext-unimplemented-role" in module "docutils.parsers.rst.languages.en".
295
295
            Trying "restructuredtext-unimplemented-role" as canonical role name.
296
 
    <system_message backrefs="id2" id="id1" level="3" line="1" source="test data" type="ERROR">
 
296
    <system_message backrefs="id2" ids="id1" level="3" line="1" source="test data" type="ERROR">
297
297
        <paragraph>
298
298
            Interpreted text role "restructuredtext-unimplemented-role" not implemented.
299
299
"""],