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