def setUp(self): node_ids = [ 1, 2, 5, 10, 20, 41, 21, 11, 22, 44, 89, 45, 91, 182, 364, 729, 1459 ] self.node_ids = node_ids init = [(node_id, "{0}".format(node_id)) for node_id in node_ids] self.tree = NAryTree(init)