#NEWLINE# def test_call_method_which_returns_dict_from_plain_object( self ) : #NEWLINE# #INDENT# request = { #NEWLINE# #INDENT# 'jsonrpc' : '2.0' , #NEWLINE# 'method' : 'calc.describe' , #NEWLINE# 'id' : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . jrw . handle_data ( request ) #NEWLINE# self . assertEqual ( request [ 'jsonrpc' ] , '2.0' ) #NEWLINE# self . assertEqual ( response [ 'id' ] , 1 ) #NEWLINE# self . assertNotIn ( 'error' , response ) #NEWLINE# self . assertIn ( 'add' , response [ 'result' ] ) #NEWLINE# self . assertIn ( 'sub' , response [ 'result' ] )