#NEWLINE# def test_byval( self ) : #NEWLINE# #INDENT# ptin = POINT ( 1 , 2 ) #NEWLINE# ptout = POINT ( ) #NEWLINE# result = dll . _testfunc_byval ( ptin , byref ( ptout ) ) #NEWLINE# got = ( result , result . x , ptout . y ) #NEWLINE# expected = ( 3 , 1 , 2 ) #NEWLINE# self . assertEqual ( got , expected ) #NEWLINE# ptin = POINT ( 101 , 102 ) #NEWLINE# ptout = POINT ( ) #NEWLINE# dll . _testfunc_byval . argtypes = ( POINT , POINTER ( POINT ) ) #NEWLINE# dll . _testfunc_byval . restype = c_int #NEWLINE# result = dll . _testfunc_byval ( ptin , byref ( ptout ) ) #NEWLINE# got = ( result , ptout . x , ptout . y ) #NEWLINE# expected = ( 203 , 101 , 102 ) #NEWLINE# self . assertEqual ( got , expected )