#NEWLINE# def _verify_requested( self , http , request , redirections = 5 , connection_type = None ) : #NEWLINE# #INDENT# self . assertEqual ( len ( http . _requested ) , 1 ) #NEWLINE# ( url , kw ) = http . _requested [ 0 ] #NEWLINE# self . assertEqual ( url , request . url ) #NEWLINE# self . assertEqual ( kw [ 'method' ] , request . http_method ) #NEWLINE# self . assertEqual ( kw [ 'body' ] , request . body ) #NEWLINE# self . assertEqual ( kw [ 'headers' ] , request . headers ) #NEWLINE# self . assertEqual ( kw [ 'redirections' ] , redirections ) #NEWLINE# self . assertEqual ( kw [ 'connection_type' ] , connection_type )