def f(self, a, b=2, *args, **kwargs): assert get_args(sys._getframe()) == OrderedDict( ( ('self', self), ('a', a), ('b', b), ('*args', args), ('**kwargs', kwargs), ) )
def f(i, j): assert get_args(sys._getframe()) == OrderedDict((('i', i), ('j', j)))
def f(**kw): assert get_args(sys._getframe()) == OrderedDict((('**kw', kw),))
def f(x, **kwargs): assert get_args(sys._getframe()) == OrderedDict( (('x', x), ('**kwargs', kwargs)) )
def f(*a): assert get_args(sys._getframe()) == OrderedDict((('*a', a),))
def f(x, y=12, z=2193): assert get_args(sys._getframe()) == OrderedDict( (('x', x), ('y', y), ('z', z)) )
def f(): assert get_args(sys._getframe()) == OrderedDict()