def test_WideAllNodesOneNode(self): node = BSTNode(1, 1, None) tree = BST(node) result = tree.WideAllNodes() correct_answer = tuple([node]) self.assertEqual(result, correct_answer)
def test_WideAllNodesEmpty(self): tree = BST(None) result = tree.WideAllNodes() correct_answer = tuple() self.assertEqual(result, correct_answer)