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