コード例 #1
0
ファイル: mpl_gui_tests.py プロジェクト: amin10/datk
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()
コード例 #2
0
ファイル: mpl_gui_tests.py プロジェクト: amin10/datk
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()