import pytest

from skidl import *

from .setup_teardown import *


def test_graph_gen_1():
    vcc, gnd = Net("VCC"), Net("GND")
    r1, r2, r3, r4 = Part("device", "R", dest=TEMPLATE) * 4
    par_ntwk = vcc & (r1 | r2 | r3 | r4) & gnd
    dot = generate_graph()
    dot.format = "svg"
    dot.render("par_ntwk")
