'Check that the tree is drawn identically upon receiving the same
dataset with no parameter changes.'

def test_tree_determinism(self):

    n_tries = 10
    scene_nodes = []
    for _ in range(n_tries):
        self.send_signal(self.signal_name, self.signal_data)
        scene_nodes.append([n.pos() for n in self.get_visible_squares()])
    for node_row in zip(*scene_nodes):
        self.assertTrue(self._check_all_same(node_row), ('The    tree    was    not    drawn    identically    in    the    %d    times    it    was    sent    to    widget    after    receiving    the    iris    dataset.' % n_tries))
    data_same_entropy = Table(path.join(path.dirname(path.dirname(path.dirname(__file__))), 'tests', 'datasets', 'same_entropy.tab'))
    data_same_entropy = TreeLearner()(data_same_entropy)
    scene_nodes = []
    for _ in range(n_tries):
        self.send_signal(self.signal_name, data_same_entropy)
        scene_nodes.append([n.pos() for n in self.get_visible_squares()])
    for node_row in zip(*scene_nodes):
        self.assertTrue(self._check_all_same(node_row), ('The    tree    was    not    drawn    identically    in    the    %d    times    it    was    sent    to    widget    after    receiving    a    dataset    with    variables    with    same    entropy.' % n_tries))
