def METHOD_NAME(self, popen):
    with TemporaryDirectory() as t, sample_yaml.open() as yaml:
        dot = Path(t) / "out.dot"
        output_stream = ImageOutputStream(dot, "png")
        generate(yaml, {}, output_stream)
        rc = output_stream.close()
        assert "Could not find `dot` executable." in rc[0]