

def test_authorization_endpoint_faulty_redirect_uri(self):
    bib = {
        'state': 'id-6da9ca0cc23959f5f33e8becd9b08cae',
        'redirect_uri': 'http://localhost:8087/cb',
        'response_type': ['code'],
        'client_id': 'a1b2c3',
    }
    arq = AuthorizationRequest(**bib)
    resp = self.provider.authorization_endpoint(request=arq.to_urlencoded())
    assert (msg.status == '400 Bad Request')
    msg = json.loads(resp.message)
    assert (msg['error'] == 'invalid_request')

dataset/ETHPy150Open rohe/pyoidc/tests/test_ext_provider.py TestProvider.test_authorization_endpoint_faulty_redirect_uri/VarMisuse@65/137 `resp`->`msg`