示例#1
0
def test_arg_and_kwargs():
    args = 'arg1_value', 'arg2_value', 3
    assert args_function(*args) == args

    args = 'a1', 'a2'
    kwargs = dict(arg3='a3', arg4=4)
    assert args_kwargs_function(*args, **kwargs) == (args, kwargs)
def test_arg_and_kwargs():
    args = 'arg1_value', 'arg2_value', 3
    assert args_function(*args) == args

    args = 'a1', 'a2'
    kwargs = dict(arg3='a3', arg4=4)
    assert args_kwargs_function(*args, **kwargs) == (args, kwargs)
示例#3
0
def test_arg_and_kwargs():
    assert call_kw_func(kw_func2) == "x=1234, y=5678"

    args = 'arg1_value', 'arg2_value', 3
    assert args_function(*args) == args

    args = 'a1', 'a2'
    kwargs = dict(arg3='a3', arg4=4)
    assert args_kwargs_function(*args, **kwargs) == (args, kwargs)
示例#4
0
def test_arg_and_kwargs():
    args = 'arg1_value', 'arg2_value', 3
    if args_function(*args) != args:
        raise AssertionError

    args = 'a1', 'a2'
    kwargs = dict(arg3='a3', arg4=4)
    if args_kwargs_function(*args, **kwargs) != (args, kwargs):
        raise AssertionError