#NEWLINE# @ mock . patch ( 'tests.test_addons_oauth.MockUserSettings.revoke_remote_oauth_access' ) #NEWLINE# @ mock . patch ( 'framework.auth.core._get_current_user' ) #NEWLINE# def test_revoke_remote_access_not_called( self , mock_decorator , mock_revoke ) : #NEWLINE# #INDENT# mock_decorator . return_value = mock_revoke . user #NEWLINE# user2 = AuthUserFactory ( ) #NEWLINE# user2 . external_accounts . append ( self . external_account ) #NEWLINE# user2 . save ( ) #NEWLINE# self . user_settings . delete ( ) #NEWLINE# assert_equal ( mock_revoke . call_count , 0 )