def _graphviz_html(self): |
-> if not py.path.local.sysfind("dot"): |
py.test.skip("graphviz needed") |
directive.set_backend_and_register_directives("html") |
if not py.path.local.sysfind("svn"): |
py.test.skip("svn needed") |
txt = datadir.join("graphviz.txt") |
html = txt.new(ext="html") |
png = datadir.join("example1.png") |
rest.process(txt) |
assert html.check() |
assert png.check() |
html_content = html.read() |
assert png.basename in html_content |
html.remove() |
png.remove() |