#NEWLINE# @ dec . slow #NEWLINE# def test_std_args_kw( self ) : #NEWLINE# #INDENT# a = Foo ( ) #NEWLINE# method = 'bar3' #NEWLINE# code = '\n               py::tuple args(2);\n               args[0] = 1;\n               args[1] = "hello";\n               py::dict kw;\n               kw["val3"] = 3;\n               return_val = a.mcall(method,args,kw);\n               ' #NEWLINE# res = inline_tools . inline ( code , [ 'a' , 'method' ] ) #NEWLINE# assert_equal ( res , ( 1 , 'hello' , 3 ) ) #NEWLINE# assert_equal ( sys . getrefcount ( res ) , 2 )