#NEWLINE# def test_keywordsUnexpected( self ) : #NEWLINE# #INDENT# data = 'some random string' #NEWLINE# proxy = Proxy ( self . addr , jsonrpc . VERSION_1 ) #NEWLINE# d = proxy . callRemote ( 'echo' , wrongname = d ) #NEWLINE# e = self . assertFailure ( d , jsonrpc . JSONRPCError ) #NEWLINE# def finished( result ) : #NEWLINE# #INDENT# msg = ( 'jsonrpc_echo() got an unexpected keyword argument ' + "'wrongname'" ) #NEWLINE# self . assertEquals ( result . strerror , msg ) #NEWLINE# self . assertEquals ( result . errno , jsonrpc . INVALID_PARAMS ) #NEWLINE# #UNINDENT# e . addCallback ( finished ) #NEWLINE# return d