diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2015-11-03 11:43:07 +0200 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-12-02 17:56:38 -0500 |
commit | 4d0f8831a7498ab3b1ebcf4cafa2ee234503e4f8 (patch) | |
tree | 45703b47b8198057be15932ea783bf9a0750ecb2 /tests/admin_docs | |
parent | 0825f77f7626d2ff175c17d06d726bf2f704f12c (diff) | |
download | django-4d0f8831a7498ab3b1ebcf4cafa2ee234503e4f8.tar.gz |
Fixed #25667 -- Fixed admindocs initial_header_level.
Diffstat (limited to 'tests/admin_docs')
-rw-r--r-- | tests/admin_docs/tests.py | 5 |
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) |