#NEWLINE# def test_explicit_configuration( self ) : #NEWLINE# #INDENT# oauth2 = FlaskOAuth2 ( flask . Flask ( __name__ ) , client_id = 'id' , client_secret = 'secret' ) #NEWLINE# self . assertEqual ( oauth2 . client_id , 'id' ) #NEWLINE# self . assertEqual ( oauth2 . client_secret , 'secret' ) #NEWLINE# return_val = ( clientsecrets . TYPE_WEB , { #NEWLINE# #INDENT# 'client_id' : 'id' , #NEWLINE# 'client_secret' : 'secret' , #NEWLINE# #UNINDENT# } ) #NEWLINE# with mock . patch ( 'oauth2client.clientsecrets.loadfile' , return_value = return_val ) : #NEWLINE# #INDENT# oauth2 = FlaskOAuth2 ( flask . Flask ( __name__ ) , client_secrets_file = 'file.json' ) #NEWLINE# self . assertEqual ( oauth2 . client_id , 'id' ) #NEWLINE# self . assertEqual ( oauth2 . client_secret , 'secret' )