def test_partial(): def func(a, b): return a + b add_three = partial(func, a=3) assert add_three(b=1) == 4