def test_binary_tree_can_be_created_with_proper_parameters(): new_node = BinaryTreeNode(1) result = BinaryTree(new_node) assert result.get_root() == new_node
def test_binary_tree_insert_node_sets_node_to_root_when_there_is_no_root(): new_node = BinaryTreeNode(1) tree = BinaryTree() tree.insert_node(new_node) assert tree.get_root() == new_node