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