We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a36057 commit 13c8664Copy full SHA for 13c8664
tests/unit/model/graphs/test_graph_model.py
@@ -27,6 +27,16 @@ def test_graph_initialize(graph):
27
assert 1 == graph.nr_branches
28
29
30
+def test_graph_has_branch(graph):
31
+ graph.add_node(1)
32
+ graph.add_node(2)
33
+ graph.add_branch(1, 2)
34
+
35
+ assert graph.has_branch(1, 2)
36
+ assert graph.has_branch(2, 1) # reversed should work too
37
+ assert not graph.has_branch(1, 3)
38
39
40
def test_graph_delete_branch(graph):
41
"""Test whether a branch is deleted correctly"""
42
graph.add_node(1)
0 commit comments