def test_wrapping_in_group(): called = [False] def fn1(arg): "r : w1 ({g1:arg} g2)" assert arg == 'hello!' called[0] = True wrapper = create_wrapper(fn1.__doc__, fn1) wrapper([None, 'foo', 'hello!', 'bar']) assert wrapper.__doc__ == 'r : w1 g1 g2' assert called[0]
def test_wrapping_in_group(): called = [False] def fn1(arg): "r : w1 ({g1:arg} g2)" assert_eq(arg, 'hello!') called[0] = True wrapper = create_wrapper(fn1.__doc__, fn1) wrapper([None, 'foo', 'hello!', 'bar']) assert_eq(wrapper.__doc__, 'r : w1 g1 g2') assert called[0]
def test_wrapping(): called = [False] def fn1(arg1): "r : {g1:arg1} g2" assert arg1 == 'hello!' called[0] = True wrapper = create_wrapper(fn1.__doc__, fn1) wrapper([None, 'hello!']) assert wrapper.__doc__ == 'r : g1 g2' assert called[0]
def test_wrapping(): called = [False] def fn1(arg1): "r : {g1:arg1} g2" assert_eq(arg1, 'hello!') called[0] = True wrapper = create_wrapper(fn1.__doc__, fn1) wrapper([None, 'hello!']) assert_eq(wrapper.__doc__, 'r : g1 g2') assert called[0]