#NEWLINE# def test_shorts( self ) : #NEWLINE# #INDENT# f = dll . _testfunc_callback_i_if #NEWLINE# args = [ ] #NEWLINE# expected = [ 262144 , 131072 , 65536 , 32768 , 16384 , 8192 , 4096 , 2048 , 1024 , 512 , 256 , 128 , 64 , 32 , 16 , 8 , 4 , 2 , 1 ] #NEWLINE# def callback( v ) : #NEWLINE# #INDENT# args . append ( v ) #NEWLINE# return v #NEWLINE# #UNINDENT# CallBack = CFUNCTYPE ( c_int , c_int ) #NEWLINE# cb = CallBack ( callback ) #NEWLINE# f ( self . wrap ( ( 2 ** 18 ) ) , self . wrap ( cb ) ) #NEWLINE# self . assertEqual ( args , expected )