示例#1
0
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
示例#2
0
def test_format_signature_with_curry(obj, exp):
    assert format_signature(curry(obj)) == exp
示例#3
0
def test_format_signature_with_partial(obj, exp):
    new_func = partial(obj, k=42)
    assert format_signature(new_func) == exp
示例#4
0
def test_format_signature(obj, exp):
    assert format_signature(obj) == exp