def METHOD_NAME(self):
    pipeline = IdentityProviderPipeline(request=self.request, provider_key="dummy")
    response = self.view.dispatch(self.request, pipeline)
    assert response.status_code == 302
    assert response["Location"].startswith("https://example.org/oauth2/authorize")
    redirect_url = urlparse(response["Location"])
    query = parse_qs(redirect_url.query)
    assert query["client_id"][0] == "123456"
    assert query["redirect_uri"][0] == "http://testserver/extensions/default/setup/"
    assert query["response_type"][0] == "code"
    assert query["scope"][0] == "all-the-things"
    assert "state" in query