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