def METHOD_NAME(self, mock_client):
    # setup
    session = self.client.session
    session["state"] = "TEST"  # nosec B105
    session.save()
    # mock
    mock_client.callback.side_effect = self.user_info
    mock_client.registration_response = {
        "post_logout_redirect_uris": ["http://example.com/back"]
    }
    mock_client.provider_info = {
        "end_session_endpoint": "http://example.com/log_me_out"
    }
    mock_client.client_id = "TEST"
    # test
    with less_console_noise():
        response = self.client.get(reverse("logout"))
    # assert
    expected = (
        "http://example.com/log_me_out?client_id=TEST&state"
        "=TEST&post_logout_redirect_uri=http%3A%2F%2Fexample.com%2Fback"
    )
    actual = response.url
    self.assertEqual(response.status_code, 302)
    self.assertEqual(actual, expected)