5
:Contact: goodger@users.sourceforge.net
6
:Revision: $Revision: 1.4 $
7
:Date: $Date: 2002/05/07 04:23:41 $
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['field_lists'] = [
67
One-liners, no blank lines:
77
One-liners, no blank lines:
108
empty item above, no blank line
117
<system_message level="2" type="WARNING">
119
Field list ends without a blank line; unexpected unindent at line 2.
121
empty item above, no blank line
124
Field bodies starting on the next line:
138
Field bodies starting on the next line:
168
One-paragraph, multi-liners:
177
:Parameter i: counter
183
One-paragraph, multi-liners:
218
One-paragraph, multi-liners, not lined up:
227
:Parameter i: counter
233
One-paragraph, multi-liners, not lined up:
268
Multiple body elements:
275
This is a field list item's body,
276
containing multiple elements.
278
Here's a literal block::
283
Even nested field lists are possible:
292
Multiple body elements:
298
<bullet_list bullet="-">
313
This is a field list item's body,
314
containing multiple elements.
316
Here's a literal block:
321
Even nested field lists are possible:
343
Nested field lists on one line:
345
:field1: :field2: :field3: body
346
:field4: :field5: :field6: body
355
Nested field lists on one line:
410
:Parameter i j k: multiple arguments
433
No blank line before this paragraph.
435
:*Field* `with` **inline** ``markup``: inline markup shouldn't be recognized.
437
: Field: marker must not begin with whitespace.
439
:Field : marker must not end with whitespace.
441
Field: marker is missing its open-colon.
443
:Field marker is missing its close-colon.
460
<system_message level="2" type="WARNING">
462
Field list ends without a blank line; unexpected unindent at line 5.
464
No blank line before this paragraph.
477
inline markup shouldn't be recognized.
479
: Field: marker must not begin with whitespace.
481
:Field : marker must not end with whitespace.
483
Field: marker is missing its open-colon.
485
:Field marker is missing its close-colon.
489
if __name__ == '__main__':
491
unittest.main(defaultTest='suite')