def test_nonsegment_lambda2_w_attr(): p = Pipe() +\ (lambda x: x+2) + \ (lambda x: x + 2) assert p.testattr(5) == 9
def test_lambda1_w_attr(): p = Pipe() +\ Segment(lambda x: x+2) assert p.testattr(5) == 7