Exemple #1
0
def test_is_leaf_false():
    t = Tree(0)
    t.add_child(Tree(1))
    nt.ok_(not is_leaf(t))
Exemple #2
0
def test_is_leaf_false():
    t = Tree(0)
    t.add_child(Tree(1))
    nt.ok_(not is_leaf(t))
Exemple #3
0
def test_is_leaf():
    nt.ok_(is_leaf(Tree(0)))
Exemple #4
0
def test_is_leaf():
    nt.ok_(is_leaf(Tree(0)))