def test_preorder_tail_recursive(self): s = Solution() mylist = s.preorder_tail_recursive(self.root) self.assertEqual(mylist, self.correct_answer)