~ubuntu-branches/ubuntu/karmic/python-docutils/karmic

« back to all changes in this revision

Viewing changes to test/test_parsers/test_rst/test_directives/test_replace.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.2 $
6
 
# Date: $Date: 2003/03/27 03:56:37 $
 
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
"""
33
33
        <substitution_reference refname="name">
34
34
            name
35
35
         directive.
36
 
    <substitution_definition name="name">
 
36
    <substitution_definition names="name">
37
37
        "
38
38
        <strong>
39
39
            replace
80
80
""",
81
81
"""\
82
82
<document source="test data">
83
 
    <substitution_definition name="Python">
 
83
    <substitution_definition names="Python">
84
84
        Python, 
85
85
        <emphasis>
86
86
            the
87
87
         best language around
88
 
    <target id="python" name="python" refuri="http://www.python.org/">
 
88
    <target ids="python" names="python" refuri="http://www.python.org/">
89
89
    <paragraph>
90
90
        I recommend you try 
91
91
        <reference refname="python">
98
98
""",
99
99
"""\
100
100
<document source="test data">
101
 
    <system_message id="id1" level="2" line="1" source="test data" type="WARNING">
 
101
    <system_message ids="id1" level="2" line="1" source="test data" type="WARNING">
102
102
        <paragraph>
103
103
            Inline emphasis start-string without end-string.
104
 
    <system_message id="id3" level="2" line="1" source="test data" type="WARNING">
 
104
    <system_message ids="id3" level="2" line="1" source="test data" type="WARNING">
105
105
        <paragraph>
106
106
            Inline strong start-string without end-string.
107
 
    <system_message id="id5" level="2" line="1" source="test data" type="WARNING">
 
107
    <system_message ids="id5" level="2" line="1" source="test data" type="WARNING">
108
108
        <paragraph>
109
109
            Inline literal start-string without end-string.
110
110
    <system_message level="3" line="1" source="test data" type="ERROR">