def METHOD_NAME(
    user, user_client
):
    user.unread_notifications = 0
    user.save()
    notification = Notification.objects.create(user=user, verb="TEST", is_read=False)
    response = user_client.get(
        reverse("misago:apiv2:notifications")
        + f"?filter=unread&before={notification.id - 1}"
    )
    assert response.status_code == 200
    response_json = response.json()
    assert response_json["results"]
    assert response_json["unreadNotifications"] == "1"
    user.refresh_from_db()
    assert user.unread_notifications == 1