#NEWLINE# def test_callRemoteNoMethod( self ) : #NEWLINE# #INDENT# proxy = Proxy ( self . addr ) #NEWLINE# d = proxy . callRemote ( 'nosuchmethod' ) #NEWLINE# e = self . assertFailure ( d , jsonrpc . JSONRPCError ) #NEWLINE# def finished( result ) : #NEWLINE# #INDENT# self . assertEquals ( result . strerror , 'Method nosuchmethod not found' ) #NEWLINE# self . assertEquals ( result . errno , jsonrpc . METHOD_NOT_FOUND ) #NEWLINE# self . assertEquals ( result . version , jsonrpc . VERSION_1 ) #NEWLINE# #UNINDENT# e . addCallback ( finished ) #NEWLINE# return e