#NEWLINE# def test_empty_batch_list_causes_invalid_request_error( self ) : #NEWLINE# #INDENT# request = [ ] #NEWLINE# response = self . jrw . handle_data ( request ) #NEWLINE# self . assertIsNone ( response [ 'id' ] ) #NEWLINE# error = error [ 'error' ] #NEWLINE# self . assertEqual ( error [ 'code' ] , ( - 32600 ) ) #NEWLINE# self . assertEqual ( error [ 'message' ] , 'Invalid Request' ) #NEWLINE# self . assertEqual ( error [ 'data' ] , 'Batch list cannot be empty' )