Ejemplo n.º 1
0
def test_convert_dot():
    # XXX not really clear that the result is valid pdf/eps
    dot = datadir.join("example1.dot")
    convert_dot(dot, "pdf")
    pdf = dot.new(ext="pdf")
    assert pdf.check()
    pdf.remove()
    convert_dot(dot, "eps")
    eps = dot.new(ext="eps")
    assert eps.check()
    eps.remove()
Ejemplo n.º 2
0
def test_convert_dot():
    # XXX not really clear that the result is valid pdf/eps
    dot = datadir.join("example1.dot")
    convert_dot(dot, "pdf")
    pdf = dot.new(ext="pdf")
    assert pdf.check()
    pdf.remove()
    convert_dot(dot, "eps")
    eps = dot.new(ext="eps")
    assert eps.check()
    eps.remove()
Ejemplo n.º 3
0
 def convert(self, fn, path):
     path = py.path.local(path).dirpath()
     dot = path.join(fn)
     result = convert_dot(dot, backend_to_image_format[_backend])
     return result.relto(path)
Ejemplo n.º 4
0
 def convert(self, fn, path):
     path = py.path.local(path).dirpath()
     dot = path.join(fn)
     result = convert_dot(dot, backend_to_image_format[_backend])
     return result.relto(path)