def METHOD_NAME(
    user, thread
):
    kept_watched_thread = WatchedThread.objects.create(
        user=user,
        category=thread.category,
        thread=thread,
        read_at=timezone.now(),
    )
    deleted_watched_thread = WatchedThread.objects.create(
        user=user,
        category=thread.category,
        thread=thread,
        read_at=timezone.now() - timedelta(seconds=30),
    )
    delete_duplicate_watched_threads(thread.id)
    kept_watched_thread.refresh_from_db()
    with pytest.raises(WatchedThread.DoesNotExist):
        deleted_watched_thread.refresh_from_db()
    assert WatchedThread.objects.count() == 1