def setUp(self):
        super(TestTaskEdit, self).setUp()
        self.plugin = plugins.TaskEdit()
        self.env = MockEnvironment()

        # patch editor environment variable to /bin/cat with suppressed output
        if os.environ in 'EDITOR':
            self.old_editor = os.environ['EDITOR']
        os.environ['EDITOR'] = 'cat >/dev/null '

        # setup test dir and task
        self.setup_dir()
        self.env.task._base_dir = self.test_dir
        self.env.task._task_dir = os.path.join(self.test_dir, 'tasks', 'test')
        os.makedirs(self.env.task._task_dir)

        # make task config
        self.task_cfg = os.path.join(self.env.task._task_dir, 'task.cfg')
        open(self.task_cfg, 'w', 0).write(_TASK_FILE_DATA)

        # register some options from the test task config to a mock plugin.
        for k in ('test_opt', 'test_block_test_opt'):
            registration.register('option', k, MockPlugin, {})
dataset/ETHPy150Open xtrementl/focus/tests/unit/plugin/modules/test_tasks.py/TestTaskEdit.setUp/swapped operands of `in`