From 4d0f8831a7498ab3b1ebcf4cafa2ee234503e4f8 Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Tue, 3 Nov 2015 11:43:07 +0200 Subject: Fixed #25667 -- Fixed admindocs initial_header_level. --- tests/admin_docs/tests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/admin_docs') 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): '

\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('

Header

', output) -- cgit v1.3