

def test_revoke_token_with_hint(self):
    data = self.get_token()
    tok = Token.query.filter_by(access_token=data['access_token']).first()
    assert (tok.access_token == data['access_token'])
    revoke_url = '/oauth/revoke'
    args = {
        'token': data['access_token'],
        'token_type_hint': 'access_token',
    }
    self.client.post(revoke_url, data=tok, headers={
        'Authorization': ('Basic %s' % auth_code),
    })
    tok = Token.query.filter_by(access_token=data['access_token']).first()
    assert (tok is None)

dataset/ETHPy150Open lepture/flask-oauthlib/tests/oauth2/test_oauth2.py TestRevokeToken.test_revoke_token_with_hint/VarMisuse@83/126 `args`->`tok`