def test_format_signature_with_wraps(obj, exp): @wraps(obj) def new_func(*args, **kwargs): return obj(*args, **kwargs) assert format_signature(new_func) == exp
def test_format_signature_with_curry(obj, exp): assert format_signature(curry(obj)) == exp
def test_format_signature_with_partial(obj, exp): new_func = partial(obj, k=42) assert format_signature(new_func) == exp
def test_format_signature(obj, exp): assert format_signature(obj) == exp