summaryrefslogtreecommitdiff
path: root/tests/test_directive_code.py
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2015-03-08 18:58:23 +0900
committershimizukawa <shimizukawa@gmail.com>2015-03-08 21:59:37 +0900
commite2a921ff07e87a5b157f3241f6d1fca432bd04f3 (patch)
treedb67e285ee8327a29c7998472e7a6848c51640b8 /tests/test_directive_code.py
parentad612fb03da13f5b7108c5eaa10f6f66eeb2fb77 (diff)
downloadsphinx-git-e2a921ff07e87a5b157f3241f6d1fca432bd04f3.tar.gz
refs #1742: `:name:` option is provided for `toctree`, `code-block` and `literalinclude` dirctives.
Diffstat (limited to 'tests/test_directive_code.py')
-rw-r--r--tests/test_directive_code.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_directive_code.py b/tests/test_directive_code.py
index d8cb2794c..ba4687cc0 100644
--- a/tests/test_directive_code.py
+++ b/tests/test_directive_code.py
@@ -55,7 +55,7 @@ def test_code_block_caption_html(app, status, warning):
html = (app.outdir / 'caption.html').text(encoding='utf-8')
caption = (u'<div class="code-block-caption">'
u'<span class="caption-text">caption <em>test</em> rb'
- u'</span><a class="headerlink" href="#id1" '
+ u'</span><a class="headerlink" href="#caption-test-rb" '
u'title="Permalink to this code">\xb6</a></div>')
assert caption in html
@@ -178,7 +178,7 @@ def test_literalinclude_caption_html(app, status, warning):
html = (app.outdir / 'caption.html').text(encoding='utf-8')
caption = (u'<div class="code-block-caption">'
u'<span class="caption-text">caption <strong>test</strong> py'
- u'</span><a class="headerlink" href="#id2" '
+ u'</span><a class="headerlink" href="#caption-test-py" '
u'title="Permalink to this code">\xb6</a></div>')
assert caption in html