summaryrefslogtreecommitdiff
path: root/tests/admin_docs/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_docs/tests.py')
-rw-r--r--tests/admin_docs/tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/admin_docs/tests.py b/tests/admin_docs/tests.py
index 0a2ec012aa..4b8707adcd 100644
--- a/tests/admin_docs/tests.py
+++ b/tests/admin_docs/tests.py
@@ -485,3 +485,8 @@ class TestUtils(AdminDocsTestCase):
'</p>\n'
)
self.assertHTMLEqual(description_output, description_rendered)
+
+ def test_initial_header_level(self):
+ header = 'should be h3...\n\nHeader\n------\n'
+ output = utils.parse_rst(header, 'header')
+ self.assertIn('<h3>Header</h3>', output)