#NEWLINE# def real_test_discover( self ) : #NEWLINE# #INDENT# c = Consumer ( None , None ) #NEWLINE# principal = 'nav@connect-op.heroku.com' #NEWLINE# res = c . discover ( principal ) #NEWLINE# assert isinstance ( res , ProviderConfigurationResponse ) #NEWLINE# assert _eq ( res . keys ( ) , [ 'registration_endpoint' , 'scopes_supported' , 'identifiers_supported' , 'token_endpoint' , 'flows_supported' , 'version' , 'userinfo_endpoint' , 'authorization_endpoint' , 'x509_url' , 'issuer' ] ) #NEWLINE# assert ( res . version == '3.0' ) #NEWLINE# assert _eq ( res . flows_supported , [ 'code' , 'token' , 'id_token' , 'code token' , 'code id_token' , 'id_token token' ] )