# -*- coding: utf-8 -*- """ test_ext_autosectionlabel ~~~~~~~~~~~~~~~~~~~~~~~~~ Test sphinx.ext.autosectionlabel extension. :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re import pytest @pytest.mark.sphinx('html', testroot='ext-autosectionlabel') def test_autosectionlabel_html(app, status, warning): app.builder.build_all() content = (app.outdir / 'index.html').text() html = ('