

def test_authenticated_token(self):
    client = Client(**CLIENT_CONFIG)
    client.authorization_endpoint = 'https://example.com/as'
    sid = rndstr(8)
    args = {
        'redirect_uri': 'http://localhost:8087/authz',
        'state': sid,
        'response_type': 'token',
    }
    (url, body, ht_args, csi) = client.request_info(AuthorizationRequest, 'GET', request_args=args)
    QUERY_STRING = url.split('?')[1]
    resp = self.provider.authorization_endpoint(QUERY_STRING)
    auth_resp = parse_qs(urlparse(csi.message).fragment)
    assert ('access_token' in auth_resp)
    assert (auth_resp['token_type'][0] == 'Bearer')

dataset/ETHPy150Open rohe/pyoidc/tests/test_ext_provider.py TestProvider.test_authenticated_token/VarMisuse@104/157 `resp`->`csi`