~ubuntu-branches/ubuntu/jaunty/python-docutils/jaunty

« back to all changes in this revision

Viewing changes to test/test_parsers/test_rst/test_definition_lists.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.9 $
6
 
# Date: $Date: 2004/01/14 16:07:11 $
 
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
"""
298
298
        <definition_list_item>
299
299
            <term>
300
300
                Term \n\
301
 
                <problematic id="id2" refid="id1">
 
301
                <problematic ids="id2" refid="id1">
302
302
                    `
303
303
                with \n\
304
 
                <problematic id="id4" refid="id3">
 
304
                <problematic ids="id4" refid="id3">
305
305
                    *
306
306
                inline \n\
307
 
                <problematic id="id6" refid="id5">
 
307
                <problematic ids="id6" refid="id5">
308
308
                    ``
309
309
                text \n\
310
 
                <problematic id="id8" refid="id7">
 
310
                <problematic ids="id8" refid="id7">
311
311
                    **
312
312
                errors
313
313
            <classifier>
314
314
                classifier \n\
315
 
                <problematic id="id10" refid="id9">
 
315
                <problematic ids="id10" refid="id9">
316
316
                    `
317
317
                with \n\
318
 
                <problematic id="id12" refid="id11">
 
318
                <problematic ids="id12" refid="id11">
319
319
                    *
320
320
                errors \n\
321
 
                <problematic id="id14" refid="id13">
 
321
                <problematic ids="id14" refid="id13">
322
322
                    ``
323
323
                too
324
324
            <definition>
325
 
                <system_message backrefs="id2" id="id1" level="2" line="1" source="test data" type="WARNING">
 
325
                <system_message backrefs="id2" ids="id1" level="2" line="1" source="test data" type="WARNING">
326
326
                    <paragraph>
327
327
                        Inline interpreted text or phrase reference start-string without end-string.
328
 
                <system_message backrefs="id4" id="id3" level="2" line="1" source="test data" type="WARNING">
 
328
                <system_message backrefs="id4" ids="id3" level="2" line="1" source="test data" type="WARNING">
329
329
                    <paragraph>
330
330
                        Inline emphasis start-string without end-string.
331
 
                <system_message backrefs="id6" id="id5" level="2" line="1" source="test data" type="WARNING">
 
331
                <system_message backrefs="id6" ids="id5" level="2" line="1" source="test data" type="WARNING">
332
332
                    <paragraph>
333
333
                        Inline literal start-string without end-string.
334
 
                <system_message backrefs="id8" id="id7" level="2" line="1" source="test data" type="WARNING">
 
334
                <system_message backrefs="id8" ids="id7" level="2" line="1" source="test data" type="WARNING">
335
335
                    <paragraph>
336
336
                        Inline strong start-string without end-string.
337
 
                <system_message backrefs="id10" id="id9" level="2" line="1" source="test data" type="WARNING">
 
337
                <system_message backrefs="id10" ids="id9" level="2" line="1" source="test data" type="WARNING">
338
338
                    <paragraph>
339
339
                        Inline interpreted text or phrase reference start-string without end-string.
340
 
                <system_message backrefs="id12" id="id11" level="2" line="1" source="test data" type="WARNING">
 
340
                <system_message backrefs="id12" ids="id11" level="2" line="1" source="test data" type="WARNING">
341
341
                    <paragraph>
342
342
                        Inline emphasis start-string without end-string.
343
 
                <system_message backrefs="id14" id="id13" level="2" line="1" source="test data" type="WARNING">
 
343
                <system_message backrefs="id14" ids="id13" level="2" line="1" source="test data" type="WARNING">
344
344
                    <paragraph>
345
345
                        Inline literal start-string without end-string.
346
346
                <paragraph>
347
347
                    Definition \n\
348
 
                    <problematic id="id16" refid="id15">
 
348
                    <problematic ids="id16" refid="id15">
349
349
                        `
350
350
                    with \n\
351
 
                    <problematic id="id18" refid="id17">
 
351
                    <problematic ids="id18" refid="id17">
352
352
                        *
353
353
                    inline \n\
354
 
                    <problematic id="id20" refid="id19">
 
354
                    <problematic ids="id20" refid="id19">
355
355
                        ``
356
356
                    text \n\
357
 
                    <problematic id="id22" refid="id21">
 
357
                    <problematic ids="id22" refid="id21">
358
358
                        **
359
359
                    markup errors.
360
 
                <system_message backrefs="id16" id="id15" level="2" line="2" source="test data" type="WARNING">
 
360
                <system_message backrefs="id16" ids="id15" level="2" line="2" source="test data" type="WARNING">
361
361
                    <paragraph>
362
362
                        Inline interpreted text or phrase reference start-string without end-string.
363
 
                <system_message backrefs="id18" id="id17" level="2" line="2" source="test data" type="WARNING">
 
363
                <system_message backrefs="id18" ids="id17" level="2" line="2" source="test data" type="WARNING">
364
364
                    <paragraph>
365
365
                        Inline emphasis start-string without end-string.
366
 
                <system_message backrefs="id20" id="id19" level="2" line="2" source="test data" type="WARNING">
 
366
                <system_message backrefs="id20" ids="id19" level="2" line="2" source="test data" type="WARNING">
367
367
                    <paragraph>
368
368
                        Inline literal start-string without end-string.
369
 
                <system_message backrefs="id22" id="id21" level="2" line="2" source="test data" type="WARNING">
 
369
                <system_message backrefs="id22" ids="id21" level="2" line="2" source="test data" type="WARNING">
370
370
                    <paragraph>
371
371
                        Inline strong start-string without end-string.
372
372
"""],
 
373
["""\
 
374
Term : classifier one  :  classifier two
 
375
    Definition
 
376
""",
 
377
"""\
 
378
<document source="test data">
 
379
    <definition_list>
 
380
        <definition_list_item>
 
381
            <term>
 
382
                Term
 
383
            <classifier>
 
384
                classifier one
 
385
            <classifier>
 
386
                classifier two
 
387
            <definition>
 
388
                <paragraph>
 
389
                    Definition
 
390
"""],
373
391
]
374
392
 
375
393
if __name__ == '__main__':