@pytest.mark.parametrize('edges, expected_next_hops, expected_neighbors', test_networks)
def test_neighbors(edges, expected_next_hops, expected_neighbors):
    r = MeshRouter(node_id=edges[0][0])
    r.add_or_update_edges(edges)
    for (node_id, neighbors) in expected_neighbors:
        assert (r.get_neighbors(node_id) == neighbors)
@pytest.mark.parametrize('edges, expected_next_hops, expected_neighbors', test_networks)
def test_neighbors(edges, expected_next_hops, expected_neighbors):
    r = MeshRouter(node_id=edges[0][0])
    r.add_or_update_edges(edges)
    for (node_id, neighbors) in expected_neighbors:
        assert (r.get_neighbors(node_id) == neighbors)