Esempio n. 1
0
def test_is_root_false():
    t = Tree(0)
    t.add_child(Tree(1))
    nt.ok_(not is_root(t.children[0]))
Esempio n. 2
0
def test_is_root_false():
    t = Tree(0)
    t.add_child(Tree(1))
    nt.ok_(not is_root(t.children[0]))
Esempio n. 3
0
def test_is_root_true():
    t = Tree(0)
    nt.ok_(is_root(t))
Esempio n. 4
0
def test_is_root_true():
    t = Tree(0)
    nt.ok_(is_root(t))