def test_get_nodes(): graph = Graph() node1 = graph.add_node(1) node2 = graph.add_node(2) actual = len(graph.get_nodes()) expected = 2 assert actual == expected
def test_node_graph_2(): g = Graph() node1 = g.add_node('Test') node2 = g.add_node('random') actual = len(g.get_nodes()) expected = 2 assert actual == expected