

def test_requires_amended(self):
    my_task = MyTask(requires=('spam', 'eggs'))
    expected = {
        'spam': 'spam',
        'eggs': 'eggs',
        'context': 'context',
    }
    self.assertEqual(expected, my_task.rebind)

dataset/ETHPy150Open openstack/taskflow/taskflow/tests/unit/test_task.py TaskTest.test_requires_amended/original