def test_lambda_task(self): fn = lambda: None t = task(fn) assert visitor.unwrap(t) is fn
def test_lambda(self): fn = lambda: None assert visitor.unwrap(fn) is fn
def test_roles_taskcall(self, fn): t = roles('foo')(task()(fn)) assert visitor.unwrap(t) is fn
def test_task_roles(self, fn): t = task(roles('foo')(fn)) assert visitor.unwrap(t) is fn
def test_taskcall(self, fn): t = task()(fn) assert visitor.unwrap(t) is fn
def test_fn(self, fn): assert visitor.unwrap(fn) is fn