def test_is_bifurcation_point_false(): t = Tree(0) nt.ok_(not is_bifurcation_point(t)) t.add_child(Tree(1)) nt.ok_(not is_bifurcation_point(t)) t.add_child(Tree(2)) t.add_child(Tree(3)) nt.ok_(not is_bifurcation_point(t))
def test_is_bifurcation_point(): t = Tree(0) t.add_child(Tree(1)) t.add_child(Tree(2)) nt.ok_(is_bifurcation_point(t))