#NEWLINE# def test_construct_with_resource_request( self , client ) : #NEWLINE# #INDENT# bh = BearerHeader ( client ) #NEWLINE# cis = ResourceRequest ( access_token = 'Sesame' ) #NEWLINE# http_args = bh . construct ( cis ) #NEWLINE# assert ( 'access_token' not in cis ) #NEWLINE# assert ( http_args == { #NEWLINE# #INDENT# 'headers' : { #NEWLINE# #INDENT# 'Authorization' : 'Bearer Sesame' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } )