def test_repr_as_separate_takes_check_box_is_working_properly(self):
        # select project 1 -> task1
        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)
        selection_model.select(
            task1_item.index(),
            QtGui.QItemSelectionModel.Select
        )

        # expect only one "Main" take listed in take_listWidget
        self.assertEqual(
            sorted(self.dialog.takes_listWidget.take_names),
            ['Main']
        )

        # check the repr_as_separate_takes_checkBox
        self.dialog.repr_as_separate_takes_checkBox.setChecked(True)

        # expect two takes of "Main" and "Main@GPU"
        self.assertEqual(
            sorted(self.dialog.takes_listWidget.take_names),
            ['Main', 'Main@GPU']
        )

        # self.show_dialog(self.dialog)
Using a condition with nested columns.
dataset/ETHPy150Open eoyilmaz/anima/tests/ui/test_version_creator.py/VersionCreatorTester.test_repr_as_separate_takes_check_box_is_working_properly--crossover with--dataset/ETHPy150Open PyTables/PyTables/tables/tests/test_queries.py/ScalarTableUsageTestCase.test_nested_col