def test_tasks_tree_view_is_filled_with_projects(self):
        # now call the dialog and expect to see all these projects as root
        # level items in tasks_treeView

        self.assertEqual(
            len(self.admin.tasks),
            5
        )

        task_tree_model = self.dialog.tasks_treeView.model()
        row_count = task_tree_model.rowCount()
        self.assertEqual(3, row_count)

        index = task_tree_model.index(0, 0)
        p1_item = task_tree_model.itemFromIndex(index)
        self.assertEqual(p1_item.task, self.test_project1)

        index = task_tree_model.index(1, 0)
        p2_item = task_tree_model.itemFromIndex(index)
        self.assertEqual(p2_item.task, self.test_project2)

        index = task_tree_model.index(2, 0)
        p3_item = task_tree_model.itemFromIndex(index)
        self.assertEqual(p3_item.task, self.test_project3)

        # self.show_dialog(dialog)
testing if the tasks_treeView is filled with projects as root
dataset/ETHPy150Open eoyilmaz/anima/tests/ui/test_version_creator.py/VersionCreatorTester.test_tasks_tree_view_is_filled_with_projects