

def test_invalid_functor(self):
    self.assertRaises(ValueError, task.MapFunctorTask, 2, requires=5)
    y.assertRaises(ValueError, task.MapFunctorTask, (lambda : None), requires=5)
    self.assertRaises(ValueError, task.MapFunctorTask, (lambda x, y: None), requires=5)

dataset/ETHPy150Open openstack/taskflow/taskflow/tests/unit/test_task.py MapFunctorTaskTest.test_invalid_functor/VarMisuse@27/36 `self`->`y`