diff options
Diffstat (limited to 'rtemsqual/tests/test_content_sphinx.py')
-rw-r--r-- | rtemsqual/tests/test_content_sphinx.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/rtemsqual/tests/test_content_sphinx.py b/rtemsqual/tests/test_content_sphinx.py index ae87942a..c4c86317 100644 --- a/rtemsqual/tests/test_content_sphinx.py +++ b/rtemsqual/tests/test_content_sphinx.py @@ -96,6 +96,28 @@ yz w """ +def test_section(): + content = SphinxContent() + with content.section("ab cd") as label: + content.add(label) + with content.section("ef gh") as label2: + content.add(label2) + assert str(content) == """.. _SectionAbCd: + +ab cd +===== + +SectionAbCd + +.. _SectionEfGh: + +ef gh +----- + +SectionEfGh +""" + + def test_append(): sc = SphinxContent() sc.append("x") |