summaryrefslogtreecommitdiff
path: root/docutils/test/test_transforms
diff options
context:
space:
mode:
authorwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-05-18 22:27:52 +0000
committerwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-05-18 22:27:52 +0000
commite699a07e2ed0da73245f131e5026011b0b4ac2a4 (patch)
tree5e04d7ee2db931833c745be92209c8713e87bbeb /docutils/test/test_transforms
parentf8e69145d50d9aba66e9a16a75c8fff0d162b5c4 (diff)
downloaddocutils-e699a07e2ed0da73245f131e5026011b0b4ac2a4.tar.gz
added SectSubTitle transform
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3351 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_transforms')
-rwxr-xr-xdocutils/test/test_transforms/test_doctitle.py37
1 files changed, 35 insertions, 2 deletions
diff --git a/docutils/test/test_transforms/test_doctitle.py b/docutils/test/test_transforms/test_doctitle.py
index c196c38ec..0e2050494 100755
--- a/docutils/test/test_transforms/test_doctitle.py
+++ b/docutils/test/test_transforms/test_doctitle.py
@@ -11,7 +11,7 @@ Tests for docutils.transforms.frontmatter.DocTitle.
"""
from __init__ import DocutilsTestSupport
-from docutils.transforms.frontmatter import DocTitle
+from docutils.transforms.frontmatter import DocTitle, SectionSubTitle
from docutils.parsers.rst import Parser
@@ -23,7 +23,7 @@ def suite():
totest = {}
-totest['section_headers'] = ((DocTitle,), [
+totest['section_headers'] = ((DocTitle, SectionSubTitle), [
["""\
.. test title promotion
@@ -188,6 +188,39 @@ substitution_definition.
This title should be the document title despite the
substitution_definition.
"""],
+["""\
+This is no doc title.
+
+===============
+ Section Title
+===============
+
+Subtitle
+========
+
+-----------------
+ Another Section
+-----------------
+
+Another Subtitle
+----------------
+
+""",
+"""\
+<document source="test data">
+ <paragraph>
+ This is no doc title.
+ <section ids="section-title" names="section title">
+ <title>
+ Section Title
+ <subtitle ids="subtitle" names="subtitle">
+ Subtitle
+ <section ids="another-section" names="another section">
+ <title>
+ Another Section
+ <subtitle ids="another-subtitle" names="another subtitle">
+ Another Subtitle
+"""],
])