tests/test_manager/test_manager_graph.py
def assert_unqualified_edge(test_case, u: BaseEntity, v: BaseEntity, rel: str) -> None:
    """Assert there's only one edge and get the data for it"""
    test_case.assertIn(u, test_case.graph)
    test_case.assertIn(v, test_case.graph[u])
    edges = list(test_case.graph[u][v].values())
    test_case.assertEqual(1, len(edges))
    data = edges[0]
    test_case.assertEqual(rel, data[RELATION])
Assert there's only one edge and get the data for it
Assert there's only one edge and get the data for it
Assert there ' s only one edge and get the data for it
def assert_unqualified_edge(test_case, u: BaseEntity, v: BaseEntity, rel: str) -> None:
    test_case.assertIn(u, test_case.graph)
    test_case.assertIn(v, test_case.graph[u])
    edges = list(test_case.graph[u][v].values())
    test_case.assertEqual(1, len(edges))
    data = edges[0]
    test_case.assertEqual(rel, data[RELATION])
def assert_unqualified_edge ( test_case , u : BaseEntity , v : BaseEntity , rel : str ) -> None : test_case . assertIn ( u , test_case . graph ) test_case . assertIn ( v , test_case . graph [ u ] ) edges = list ( test_case . graph [ u ] [ v ] . values ( ) ) test_case . assertEqual ( 1 , len ( edges ) ) data = edges [ 0 ] test_case . assertEqual ( rel , data [ RELATION ] )
Assert there's only one edge and get the data for it
Assert there ' s only one edge and get the data for it
"""Assert there's only one edge and get the data for it"""
test_case
u
BaseEntity
v
BaseEntity
rel
str