summaryrefslogtreecommitdiff
path: root/tests/test_ext_graphviz.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_ext_graphviz.py')
-rw-r--r--tests/test_ext_graphviz.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_ext_graphviz.py b/tests/test_ext_graphviz.py
index ec905aa5f..f1ae8d17e 100644
--- a/tests/test_ext_graphviz.py
+++ b/tests/test_ext_graphviz.py
@@ -29,8 +29,9 @@ def test_graphviz_png_html(app, status, warning):
html = 'Hello <div class="graphviz"><img .*?/></div>\n graphviz world'
assert re.search(html, content, re.S)
- html = '<img src=".*?" alt="digraph {\n bar -&gt; baz\n}" class="graphviz" />'
- assert re.search(html, content, re.M)
+ html = ('<img src=".*?" alt="digraph foo {\nbaz -&gt; qux\n}" '
+ 'class="graphviz neato-graph" />')
+ assert re.search(html, content, re.S)
html = (r'<div class="figure align-right" .*?>\s*'
r'<div class="graphviz"><img .*?/></div>\s*<p class="caption">'