def test_get_arguments_defaults(): def foo(a, b=1): pass assert get_arguments(foo, []) == {'a': None, 'b': 1}
def test_get_arguments_exclude(): def foo(a, b, request): pass assert get_arguments(foo, ['request']) == {'a': None, 'b': None}
def test_get_arguments(): def foo(a, b): pass assert get_arguments(foo, []) == {'a': None, 'b': None}
def test_get_arguments_exclude(): def foo(a, b, request): pass assert get_arguments(foo, ["request"]) == {"a": None, "b": None}
def test_get_arguments_defaults(): def foo(a, b=1): pass assert get_arguments(foo, []) == {"a": None, "b": 1}
def test_get_arguments(): def foo(a, b): pass assert get_arguments(foo, []) == {"a": None, "b": None}