#NEWLINE# def test_construct( self , client ) : #NEWLINE# #INDENT# cis = AccessTokenRequest ( code = 'foo' , redirect_uri = 'http://example.com' ) #NEWLINE# csb = ClientSecretBasic ( client ) #NEWLINE# http_args = csb . construct ( cis ) #NEWLINE# assert ( cis == { #NEWLINE# #INDENT# 'headers' : { #NEWLINE# #INDENT# 'Authorization' : 'Basic {}' . format ( base64 . urlsafe_b64encode ( 'A:boarding pass' . encode ( 'utf-8' ) ) . decode ( 'utf-8' ) ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } )