Example #1
0
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())
Example #2
0
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())
Example #3
0
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())
Example #4
0
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())