5
:Contact: goodger@users.sourceforge.net
6
:Revision: $Revision: 1.3 $
7
:Date: $Date: 2002/04/25 03:40:33 $
8
:Copyright: This module has been placed in the public domain.
13
from __init__ import DocutilsTestSupport
16
s = DocutilsTestSupport.ParserTestSuite()
17
s.generateTests(totest)
22
totest['citations'] = [
24
.. [citation] This is a citation.
28
<citation id="citation" name="citation">
35
.. [citation1234] This is a citation with year.
39
<citation id="citation1234" name="citation1234">
43
This is a citation with year.
46
.. [citation] This is a citation
51
<citation id="citation" name="citation">
59
.. [citation1] This is a citation
60
on multiple lines with more space.
62
.. [citation2] This is a citation
63
on multiple lines with less space.
67
<citation id="citation1" name="citation1">
72
on multiple lines with more space.
73
<citation id="citation2" name="citation2">
78
on multiple lines with less space.
82
This is a citation on multiple lines
83
whose block starts on line 2.
87
<citation id="citation" name="citation">
91
This is a citation on multiple lines
92
whose block starts on line 2.
97
That was an empty citation.
101
<citation id="citation" name="citation">
105
That was an empty citation.
113
<citation id="citation" name="citation">
116
<system_message level="2" type="WARNING">
118
Explicit markup ends without a blank line; unexpected unindent at line 2.
123
.. [citation label with spaces] this isn't a citation
125
.. [*citationlabelwithmarkup*] this isn't a citation
130
[citation label with spaces] this isn't a citation
132
[*citationlabelwithmarkup*] this isn't a citation
137
if __name__ == '__main__':
139
unittest.main(defaultTest='suite')