

def test_requires_allows_optional(self):
    my_task = DefaultArgTask(requires=('spam', 'eggs'))
    self.assertEqual(set(['spam', 'eggs']), my_task.requires)
    self.assertEqual(set(), my_task.optional)

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