summaryrefslogtreecommitdiffstats
path: root/rtemsspec/tests/test_content_sphinx.py
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsspec/tests/test_content_sphinx.py')
-rw-r--r--rtemsspec/tests/test_content_sphinx.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/rtemsspec/tests/test_content_sphinx.py b/rtemsspec/tests/test_content_sphinx.py
index 6581b173..70ed6226 100644
--- a/rtemsspec/tests/test_content_sphinx.py
+++ b/rtemsspec/tests/test_content_sphinx.py
@@ -260,6 +260,16 @@ def test_license_and_copyrights():
"""
+def test_comment():
+ content = SphinxContent()
+ with content.comment_block():
+ content.add(["abc", "", "def"])
+ assert str(content) == """.. abc
+..
+.. def
+"""
+
+
def test_substitute(tmpdir):
config = create_item_cache_config_and_copy_spec(tmpdir,
"spec-sphinx",