5
:Contact: goodger@users.sourceforge.net
6
:Revision: $Revision: 1.4 $
7
:Date: $Date: 2002/06/28 04:21:01 $
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['literal_blocks'] = [
42
Another literal block.
43
With two blank lines following.
57
Another literal block.
58
With two blank lines following.
83
with no blank line above.
91
<system_message level="3" type="ERROR">
93
Unexpected indentation at line 4.
96
with no blank line above.
110
<system_message level="2" type="WARNING">
112
Literal block ends without a blank line; unexpected unindent at line 4.
164
<system_message level="2" type="WARNING">
166
Literal block expected at line 2; none found.
173
A wonky literal block.
183
A wonky literal block.
189
EOF, even though a literal block is indicated::
194
EOF, even though a literal block is indicated:
195
<system_message level="2" type="WARNING">
197
Literal block expected at line 2; none found.
201
if __name__ == '__main__':
203
unittest.main(defaultTest='suite')