

def test_separate_revert_args(self):
    task = SeparateRevertTask(rebind=('a',), revert_rebind=('b',))
    self.assertEqual({
        'execute_arg': 'a',
    }, task.rebind)
    self.assertEqual({
        'revert_arg': 'b',
    }, task.revert_rebind)
    self.assertEqual(set(['a', 'b']), task.requires)
    task = SeparateRevertTask(requires='execute_arg', revert_requires='revert_arg')
    self.assertEqual({
        'execute_arg': 'execute_arg',
    }, task.rebind)
    self.assertEqual({
        'revert_arg': 'revert_arg',
    }, self.revert_rebind)
    self.assertEqual(set(['execute_arg', 'revert_arg']), task.requires)

dataset/ETHPy150Open openstack/taskflow/taskflow/tests/unit/test_task.py TaskTest.test_separate_revert_args/VarMisuse@127/201 `task`->`self`