4 # Author: David Goodger <goodger@python.org>
5 # Copyright: This module has been placed in the public domain.
11 from __init__
import DocutilsTestSupport
14 s
= DocutilsTestSupport
.ParserTestSuite()
15 s
.generateTests(totest
)
20 totest
['block_quotes'] = [
28 <document source="test data">
45 <document source="test data">
59 Unexpectedly indented.
62 <document source="test data">
66 <system_message level="3" line="3" source="test data" type="ERROR">
68 Unexpected indentation.
71 Unexpectedly indented.
81 <document source="test data">
88 <system_message level="2" line="5" source="test data" type="WARNING">
90 Block quote ends without a blank line; unexpected unindent.
101 Is this correct? Should it generate a warning?
102 Yes, it is correct, no warning necessary.
105 <document source="test data">
115 Is this correct? Should it generate a warning?
116 Yes, it is correct, no warning necessary.
132 <document source="test data">
149 Alternative: true em-dash.
155 Alternative: three hyphens.
162 <document source="test data">
164 Alternative: true em-dash.
171 Alternative: three hyphens.
183 -- Attribution line one
190 -- Attribution line one
196 <document source="test data">
228 <document source="test data">
252 <document source="test data">
265 Unindented paragraph.
278 <document source="test data">
280 Unindented paragraph.
289 <comment xml:space="preserve">
297 -- Not an attribution
303 \-- Not an attribution
309 -- Not an attribution line one
314 <document source="test data">
319 -- Not an attribution
326 -- Not an attribution
333 <definition_list_item>
335 -- Not an attribution line one
338 <definition_list_item>
348 -- Not a valid attribution
354 --Invalid attribution
361 <document source="test data">
366 -- Not a valid attribution
373 --Invalid attribution
382 if __name__
== '__main__':
384 unittest
.main(defaultTest
='suite')