Beispiel #1
0
def test_LE_network_draw():
    x = Bidirectional_Ring(8)
    A = LCR(x)
    node_colors, edge_colors = A.get_draw_args(x)
    assert edge_colors is None
    assert len(node_colors) == len(x)
    x.draw()
Beispiel #2
0
def test_no_draw_args_alg_network_draw():
    x = Bidirectional_Ring(8)
    A = Do_Nothing(x)
    assert not hasattr(A, 'get_draw_args')
    x.draw()