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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Simon McVittie
  • Date: 2008-07-24 10:39:53 UTC
  • mfrom: (1.1.4 upstream) (3.1.7 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080724103953-8gh4uezg17g9ysgy
Tags: 0.5-2
* Upload docutils 0.5 to unstable
* Update rst.el to upstream Subversion r5596, which apparently fixes
  all its performance problems (17_speed_up_rst_el.dpatch, closes: #474941)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /usr/bin/env python
2
2
 
3
 
# Author: David Goodger
4
 
# Contact: goodger@users.sourceforge.net
5
 
# Revision: $Revision: 3129 $
6
 
# Date: $Date: 2005-03-26 17:21:28 +0100 (Sat, 26 Mar 2005) $
 
3
# $Id: test_citations.py 5510 2008-02-15 09:23:07Z grubert $
 
4
# Author: David Goodger <goodger@python.org>
7
5
# Copyright: This module has been placed in the public domain.
8
6
 
9
7
"""
131
129
    <comment xml:space="preserve">
132
130
        [*citationlabelwithmarkup*] this isn't a citation
133
131
"""],
 
132
["""
 
133
isolated internals : ``.-_``.
 
134
 
 
135
.. [citation.withdot] one dot
 
136
 
 
137
.. [citation-withdot] one hyphen
 
138
 
 
139
.. [citation_withunderscore] one underscore
 
140
 
 
141
.. [citation:with:colons] two colons
 
142
 
 
143
.. [citation+withplus] one plus
 
144
""",
 
145
"""<document source="test data">
 
146
    <paragraph>
 
147
        isolated internals : \n\
 
148
        <literal>
 
149
            .-_
 
150
        .
 
151
    <citation ids="citation-withdot" names="citation.withdot">
 
152
        <label>
 
153
            citation.withdot
 
154
        <paragraph>
 
155
            one dot
 
156
    <citation ids="id1" names="citation-withdot">
 
157
        <label>
 
158
            citation-withdot
 
159
        <paragraph>
 
160
            one hyphen
 
161
    <citation ids="citation-withunderscore" names="citation_withunderscore">
 
162
        <label>
 
163
            citation_withunderscore
 
164
        <paragraph>
 
165
            one underscore
 
166
    <citation ids="citation-with-colons" names="citation:with:colons">
 
167
        <label>
 
168
            citation:with:colons
 
169
        <paragraph>
 
170
            two colons
 
171
    <citation ids="citation-withplus" names="citation+withplus">
 
172
        <label>
 
173
            citation+withplus
 
174
        <paragraph>
 
175
            one plus
 
176
"""],
134
177
]
135
178
 
136
179