4 # Author: David Goodger <goodger@python.org>
5 # Copyright: This module has been placed in the public domain.
8 Tests for inline markup in PEPs (readers/pep.py).
11 from __init__
import DocutilsTestSupport
15 s
= DocutilsTestSupport
.PEPParserTestSuite()
16 s
.generateTests(totest
)
22 totest
['standalone_references'] = [
24 See PEP 287 (pep-0287.txt),
25 and RFC 2822 (which obsoletes RFC822 and RFC-733).
28 <document source="test data">
31 <reference refuri="http://www.python.org/dev/peps/pep-0287">
34 <reference refuri="http://www.python.org/dev/peps/pep-0287">
38 <reference refuri="http://tools.ietf.org/html/rfc2822.html">
41 <reference refuri="http://tools.ietf.org/html/rfc822.html">
44 <reference refuri="http://tools.ietf.org/html/rfc733.html">
49 References split across lines:
58 <document source="test data">
60 References split across lines:
62 <reference refuri="http://www.python.org/dev/peps/pep-0287">
66 <reference refuri="http://tools.ietf.org/html/rfc2822.html">
71 Test PEP-specific implicit references before a URL:
73 PEP 287 (http://www.python.org/dev/peps/pep-0287), RFC 2822.
76 <document source="test data">
78 Test PEP-specific implicit references before a URL:
80 <reference refuri="http://www.python.org/dev/peps/pep-0287">
83 <reference refuri="http://www.python.org/dev/peps/pep-0287">
84 http://www.python.org/dev/peps/pep-0287
86 <reference refuri="http://tools.ietf.org/html/rfc2822.html">
92 totest
['miscellaneous'] = [
94 For *completeness*, _`let's` ``test`` **other** forms_
95 |of| `inline markup` [*]_.
97 .. [*] See http://docutils.sf.net/docs/ref/rst/restructuredtext.html.
100 <document source="test data">
106 <target ids="let-s" names="let's">
115 <reference name="forms" refname="forms">
118 <substitution_reference refname="of">
124 <footnote_reference auto="*" ids="id1">
126 <footnote auto="*" ids="id2">
129 <reference refuri="http://docutils.sf.net/docs/ref/rst/restructuredtext.html">
130 http://docutils.sf.net/docs/ref/rst/restructuredtext.html
136 if __name__
== '__main__':
138 unittest
.main(defaultTest
='suite')