4 # Author: David Goodger <goodger@python.org>
5 # Copyright: This module has been placed in the public domain.
8 Tests for the target-notes directives.
11 from __init__
import DocutilsTestSupport
14 s
= DocutilsTestSupport
.ParserTestSuite()
15 s
.generateTests(totest
)
20 totest
['target-notes'] = [
25 <document source="test data">
27 .. internal attributes:
28 .transform: docutils.transforms.references.TargetNotes
32 .. target-notes:: :class: custom
35 <document source="test data">
37 .. internal attributes:
38 .transform: docutils.transforms.references.TargetNotes
48 <document source="test data">
49 <pending ids="targets" names="targets">
50 .. internal attributes:
51 .transform: docutils.transforms.references.TargetNotes
60 <document source="test data">
61 <system_message level="3" line="1" source="test data" type="ERROR">
63 Error in "target-notes" directive:
64 invalid option value: (option: "class"; value: None)
65 argument required but none supplied.
66 <literal_block xml:space="preserve">
73 if __name__
== '__main__':
75 unittest
.main(defaultTest
='suite')