def test__tree__given_root__is_not_empty(self): root = Node(0) tree = Tree(root) assert not tree.is_empty()
def test__tree__given_no_root__is_empty(self): tree = Tree(root=None) assert tree.is_empty()