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

« back to all changes in this revision

Viewing changes to test/test_readers/test_pep/test_inline_markup.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_inline_markup.py 4564 2006-05-21 20:44:42Z wiemann $
 
4
# Author: David Goodger <goodger@python.org>
7
5
# Copyright: This module has been placed in the public domain.
8
6
 
9
7
"""
30
28
<document source="test data">
31
29
    <paragraph>
32
30
        See \n\
33
 
        <reference refuri="http://www.python.org/peps/pep-0287.html">
 
31
        <reference refuri="http://www.python.org/dev/peps/pep-0287">
34
32
            PEP 287
35
33
         (
36
 
        <reference refuri="http://www.python.org/peps/pep-0287.html">
 
34
        <reference refuri="http://www.python.org/dev/peps/pep-0287">
37
35
            pep-0287.txt
38
36
        ),
39
37
        and \n\
61
59
    <paragraph>
62
60
        References split across lines:
63
61
    <paragraph>
64
 
        <reference refuri="http://www.python.org/peps/pep-0287.html">
 
62
        <reference refuri="http://www.python.org/dev/peps/pep-0287">
65
63
            PEP
66
64
            287
67
65
    <paragraph>
72
70
["""\
73
71
Test PEP-specific implicit references before a URL:
74
72
 
75
 
PEP 287 (http://www.python.org/peps/pep-0287.html), RFC 2822.
 
73
PEP 287 (http://www.python.org/dev/peps/pep-0287), RFC 2822.
76
74
""",
77
75
"""\
78
76
<document source="test data">
79
77
    <paragraph>
80
78
        Test PEP-specific implicit references before a URL:
81
79
    <paragraph>
82
 
        <reference refuri="http://www.python.org/peps/pep-0287.html">
 
80
        <reference refuri="http://www.python.org/dev/peps/pep-0287">
83
81
            PEP 287
84
82
         (
85
 
        <reference refuri="http://www.python.org/peps/pep-0287.html">
86
 
            http://www.python.org/peps/pep-0287.html
 
83
        <reference refuri="http://www.python.org/dev/peps/pep-0287">
 
84
            http://www.python.org/dev/peps/pep-0287
87
85
        ), \n\
88
86
        <reference refuri="http://www.faqs.org/rfcs/rfc2822.html">
89
87
            RFC 2822