def test_step_stop_backward(tgraph): assert tools.step(tgraph, 5, 3, backward=True) is None
def test_step_inbound_false_backward(tgraph): assert tools.step(tgraph, 7, 5, backward=True) == 3
def test_step_inbound_true_backward(tgraph): assert tools.step(tgraph, 7, 5, backward=True, inbound=True) is None
def test_step_stop(tgraph): assert tools.step(tgraph, 3, 5) is None
def test_step_basic_backward(tgraph): assert tools.step(tgraph, 3, 2, backward=True) == 1
def test_step_inbound_false(tgraph): assert tools.step(tgraph, 2, 3) == 5
def test_step_inbound_true(tgraph): assert tools.step(tgraph, 2, 3, inbound=True) is None
def test_step_basic(tgraph): assert tools.step(tgraph, 1, 2) == 3