def test_is_forking_point(): t = Tree() t.add_child(Tree()) t.add_child(Tree()) nt.ok_(t.is_forking_point()) t.add_child(Tree()) nt.ok_(t.is_forking_point())
def test_is_forking_point_false(): t = Tree() nt.ok_(not t.is_forking_point()) t.add_child(Tree()) nt.ok_(not t.is_forking_point())