#NEWLINE# def testMultipleAuthorities( self ) : #NEWLINE# #INDENT# 'Test multiple authorities that authenticate same identity.' #NEWLINE# self . _tester . RegisterGoogleUser ( { #NEWLINE# #INDENT# 'name' : 'Mike Purtell' , #NEWLINE# 'email' : 'mike@emailscrubbed.com' , #NEWLINE# 'verified_email' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . _tester . LoginViewfinderUser ( { #NEWLINE# #INDENT# 'email' : 'mike@emailscrubbed.com' , #NEWLINE# #UNINDENT# } , self . _mobile_device_dict ) #NEWLINE# identity = self . _RunAsync ( Identity . Query , self . _client , 'Email:mike@emailscrubbed.com' , None ) #NEWLINE# self . assertEqual ( self . authority , 'Viewfinder' ) #NEWLINE# self . assertEqual ( identity . expires , 0 ) #NEWLINE# self . _tester . LoginGoogleUser ( { #NEWLINE# #INDENT# 'email' : 'mike@emailscrubbed.com' , #NEWLINE# 'verified_email' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# identity = self . _RunAsync ( Identity . Query , self . _client , 'Email:mike@emailscrubbed.com' , None ) #NEWLINE# self . assertEqual ( identity . authority , 'Google' )