3
# Author: David Goodger
4
# Contact: goodger@python.org
5
# Revision: $Revision: 3206 $
6
# Date: $Date: 2005-04-12 01:16:11 +0200 (Tue, 12 Apr 2005) $
7
# Copyright: This module has been placed in the public domain.
10
Tests for the "sidebar" directive.
13
from __init__ import DocutilsTestSupport
16
s = DocutilsTestSupport.ParserTestSuite()
17
s.generateTests(totest)
22
totest['sidebars'] = [
31
<document source="test data">
35
<system_message level="3" line="3" source="test data" type="ERROR">
37
The "sidebar" directive may not be used within a sidebar element.
38
<literal_block xml:space="preserve">
53
<document source="test data">
60
<system_message level="3" line="5" source="test data" type="ERROR">
62
The "sidebar" directive may not be used within topics or body elements.
63
<literal_block xml:space="preserve">
71
if __name__ == '__main__':
73
unittest.main(defaultTest='suite')