コード例 #1
0
ファイル: test_google_oauth.py プロジェクト: metanerd/unisubs
 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')
コード例 #2
0
ファイル: models.py プロジェクト: CSCI-362-02-2016/Blue
 def delete(self):
     google.revoke_auth_token(self.oauth_refresh_token)
     super(YouTubeAccount, self).delete()
コード例 #3
0
 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()