#NEWLINE# def test_positional_args( self ) : #NEWLINE# #INDENT# proxy = ServiceProxy ( self . host ) #NEWLINE# self . assert_ ( ( proxy . jsonrpc . test ( 'Hello' ) [ 'result' ] == 'Hello' ) ) #NEWLINE# try : #NEWLINE# #INDENT# proxy . jsonrpc . test ( string = 'Hello' ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# self . assert_ ( ( e . args [ 0 ] == 'Unsupported arg type for JSON-RPC 1.0 (the default version for this client, pass version="2.0" to use keyword arguments)' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assert_ ( False , 'Proxy didnt warn about version mismatch' )