

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

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