4 # Author: David Goodger <goodger@python.org>
5 # Copyright: This module has been placed in the public domain.
8 Tests for docutils.transforms.universal.StripComments.
11 from __init__
import DocutilsTestSupport
12 from docutils
.transforms
.universal
import StripComments
13 from docutils
.parsers
.rst
import Parser
18 s
= DocutilsTestSupport
.TransformTestSuite(
19 parser
, suite_settings
={'strip_comments': 1})
20 s
.generateTests(totest
)
25 totest
['strip_comments'] = ((StripComments
,), [
35 <document source="test data">
36 <section ids="title" names="title">
45 if __name__
== '__main__':
47 unittest
.main(defaultTest
='suite')