Ejemplo n.º 1
0
def test_path_query_path4_retrieves_expected_subset():
    set_default_paper_matrix()
    nodes = matrix_searcher.path_query(4)
    assert 3 == len(nodes)
    assert paper_nodes[3] in nodes
    assert paper_nodes[6] in nodes
    assert paper_nodes[7] in nodes
Ejemplo n.º 2
0
def test_path_query_retrieves_column(monkeypatch):
    counters = mock_method_with_counter(monkeypatch, db, 'get_row')

    matrix_searcher.path_query(0)
    assert 1 == counters['invocations']