'test getting the arguments from a function'

def test_function_decl_2(self):

    code = 'def    foo(a,    b,    c=None,    *args,    **kwargs):pass'
    parsed = ast.FunctionDecl(code, **exception_kwargs)
    eq_(parsed.funcname, 'foo')
    eq_(parsed.argnames, ['a', 'b', 'c', 'args', 'kwargs'])
