#NEWLINE# def test_named_params( self ) : #NEWLINE# #INDENT# src = '                def foo(a=1, bar=2):\n                    pass\n                foo(bar=1)\n              ' #NEWLINE# bar = names ( dedent ( src ) , references = True ) [ ( - 1 ) ] #NEWLINE# param = bar . goto_assignments ( ) [ 0 ] #NEWLINE# assert ( param . start_pos == ( 1 , 13 ) ) #NEWLINE# assert ( param . type == 'param' )