def test_revoke_auth_token(self): mocker = RequestsMocker() mocker.expect_request('get', 'https://accounts.google.com/o/oauth2/revoke', params={'token': 'test-token'}) google.revoke_auth_token.run_original_for_test() with mocker: google.revoke_auth_token('test-token')
def delete(self): google.revoke_auth_token(self.oauth_refresh_token) super(YouTubeAccount, self).delete()
def delete(self): google.revoke_auth_token(self.oauth_refresh_token) if self.import_feed is not None: self.import_feed.delete() super(YouTubeAccount, self).delete()