예제 #1
0
def test_get_edge_1(graph_test):
    actual = get_edge(graph_test, [
        'Metroville',
        'Pandora',
    ])
    expect = 'True, $82'
    assert expect == actual
예제 #2
0
def test_get_edge_4(graph_test):
    actual = get_edge(graph_test, ['Narnia', 'Arendelle', 'Naboo'])
    expect = False
    assert expect == actual
예제 #3
0
def test_get_edge_2(graph_test):
    actual = get_edge(graph_test, ['Arendelle', 'New Monstropolis', 'Naboo'])
    expect = 'True, $115'
    assert expect == actual
예제 #4
0
def test_get_edge_3(graph_test):
    actual = get_edge(graph_test, ['Naboo', 'Pandora'])
    expect = False
    assert expect == actual
예제 #5
0
def test_get_edges(graph_test):
    assert get_edge(graph_test, ['r','c']) == [False,'$0']
    assert get_edge(graph_test, [1,7]) == [False,'$0']
    assert get_edge(graph_test, ['d','a']) == [True,'$9']