#NEWLINE# @ patch ( 'routes.login.google.facade.send_passwordless_login_link' ) #NEWLINE# def test_google_user_logged_for_already_email_registered_user( self , send_login_mock ) : #NEWLINE# #INDENT# email = 'foo@gmail.com' #NEWLINE# self . set_current_user ( user_email = email ) #NEWLINE# facade . save_or_update_passwordless_app_data ( 'id' , 'token' ) . execute ( ) #NEWLINE# facade . save_user_cmd ( email ) . execute ( ) #NEWLINE# response = google . index ( Mock ( ) ) #NEWLINE# self . assertEqual ( email , send_login_mock . call_args [ 0 ] [ 0 ] ) #NEWLINE# self . assert_can_render ( response )