def METHOD_NAME(
    user, user_client, private_threads_category, private_thread, private_thread_reply
):
    ThreadParticipant.objects.create(thread=private_thread, user=user)
    notification = Notification.objects.create(
        user=user,
        verb=NotificationVerb.REPLIED,
        category=private_threads_category,
        thread=private_thread,
        thread_title=private_thread.title,
        post=private_thread_reply,
    )
    response = user_client.get(
        reverse("misago:notification", kwargs={"notification_id": notification.id})
    )
    assert response.status_code == 302
    assert response.headers["location"]