4 # Author: David Goodger <goodger@python.org>
5 # Copyright: This module has been placed in the public domain.
10 from __future__
import absolute_import
12 if __name__
== '__main__':
14 from test_parsers
import DocutilsTestSupport
17 s
= DocutilsTestSupport
.ParserTestSuite()
18 s
.generateTests(totest
)
23 totest
['bullet_lists'] = [
28 <document source="test data">
29 <bullet_list bullet="-">
40 <document source="test data">
41 <bullet_list bullet="*">
50 No blank line between:
56 <document source="test data">
58 No blank line between:
59 <bullet_list bullet="+">
75 <document source="test data">
76 <bullet_list bullet="-">
92 <document source="test data">
93 <bullet_list bullet="-">
113 <document source="test data">
116 <bullet_list bullet="-">
120 <bullet_list bullet="+">
124 <bullet_list bullet="*">
128 <system_message level="2" line="8" source="test data" type="WARNING">
130 Bullet list ends without a blank line; unexpected unindent.
131 <bullet_list bullet="-">
141 <document source="test data">
142 <bullet_list bullet="-">
146 <system_message level="2" line="2" source="test data" type="WARNING">
148 Bullet list ends without a blank line; unexpected unindent.
158 <document source="test data">
159 <bullet_list bullet="-">
166 empty item above, no blank line
169 <document source="test data">
170 <bullet_list bullet="-">
172 <system_message level="2" line="2" source="test data" type="WARNING">
174 Bullet list ends without a blank line; unexpected unindent.
176 empty item above, no blank line
183 \u2023 TRIANGULAR BULLET
188 <document source="test data">
191 <bullet_list bullet="\u2022">
195 <bullet_list bullet="\u2023">
199 <bullet_list bullet="\u2043">
206 if __name__
== '__main__':
208 unittest
.main(defaultTest
='suite')