3
# Author: David Goodger
4
# Contact: goodger@users.sourceforge.net
5
# Revision: $Revision: 4156 $
6
# Date: $Date: 2005-12-08 05:43:13 +0100 (Thu, 08 Dec 2005) $
7
# Copyright: This module has been placed in the public domain.
10
Tests for the target-notes directives.
13
from __init__ import DocutilsTestSupport
16
s = DocutilsTestSupport.ParserTestSuite()
17
s.generateTests(totest)
22
totest['target-notes'] = [
27
<document source="test data">
29
.. internal attributes:
30
.transform: docutils.transforms.references.TargetNotes
34
.. target-notes:: :class: custom
37
<document source="test data">
39
.. internal attributes:
40
.transform: docutils.transforms.references.TargetNotes
49
<document source="test data">
50
<system_message level="3" line="1" source="test data" type="ERROR">
52
Error in "target-notes" directive:
53
invalid option value: (option: "class"; value: None)
54
argument required but none supplied.
55
<literal_block xml:space="preserve">
62
if __name__ == '__main__':
64
unittest.main(defaultTest='suite')