def test_graph_desc_to_ances(session, graph, users, groups):  # noqa

    setup_desc_to_ances(session, users, groups)
    session.commit()
    graph.update_from_db(session)

    assert get_users(graph, "team-sre") == set(["gary@a.co", "zay@a.co"])
    assert get_users(graph, "tech-ops") == set(["gary@a.co", "zay@a.co"])

    assert get_users(graph, "team-infra") == set(["gary@a.co", "zay@a.co"])
    assert get_users(graph, "team-infra", cutoff=1) == set(["gary@a.co"])

    assert get_users(graph, "all-teams") == set(["gary@a.co", "zay@a.co", "testuser@a.co"])
    assert get_users(graph, "all-teams", cutoff=1) == set(["testuser@a.co"])

    assert get_groups(graph, "gary@a.co") == set(["team-sre", "all-teams", "tech-ops",
            "team-infra"])
    assert get_groups(graph, "gary@a.co", cutoff=1) == set(["team-sre", "tech-ops", "team-infra"])

    assert get_groups(graph, "zay@a.co") == set(["team-sre", "all-teams", "tech-ops", "team-infra"])
    assert get_groups(graph, "zay@a.co", cutoff=1) == set(["team-sre", "tech-ops"])

    assert get_groups(graph, "testuser@a.co") == set(["all-teams"])
    assert get_groups(graph, "testuser@a.co", cutoff=1) == set(["all-teams"])
Start handshake between TLS client and server.
dataset/ETHPy150Open dropbox/grouper/tests/test_groups.py/test_graph_desc_to_ances--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/protocols/test/test_tls.py/TLSMemoryBIOTests.handshakeProtocols