#NEWLINE# def test_0_call_error( self ) : #NEWLINE# #INDENT# c = rpc . Client ( self . _client_sock ) #NEWLINE# obj = b'hoge' #NEWLINE# try : #NEWLINE# #INDENT# c . call ( b'err' , [ obj ] ) #NEWLINE# raise Exception ( 'unexpected' ) #NEWLINE# #UNINDENT# except rpc . RPCError as e : #NEWLINE# #INDENT# assert ( e . get_value ( ) == obj )