def test_tasks_treeView_tasks_are_sorted(self):
        item_model = self.dialog.tasks_treeView.model()
        selection_model = self.dialog.tasks_treeView.selectionModel()

        index = item_model.index(0, 0)
        project1_item = item_model.itemFromIndex(index)
        self.dialog.tasks_treeView.expand(index)

        task1_item = project1_item.child(0, 0)
        self.assertEqual(task1_item.text(), self.test_task1.name)

        task2_item = project1_item.child(1, 0)
        self.assertEqual(task2_item.text(), self.test_task2.name)
testing if tasks in tasks_treeView are sorted according to their
dataset/ETHPy150Open eoyilmaz/anima/tests/ui/test_version_creator.py/VersionCreatorTester.test_tasks_treeView_tasks_are_sorted