

def test_functor_invalid_requires(self):
    self.assertRaises(TypeError, task.MapFunctorTask, (lambda x: None), requires=1)

dataset/ETHPy150Open openstack/taskflow/taskflow/tests/unit/test_task.py MapFunctorTaskTest.test_functor_invalid_requires/original