def METHOD_NAME():
    def infinite_wait():
        while True:
            time.sleep(0.001)
    thread = DestroyableThread(infinite_wait)
    thread.start()
    thread.destroy()
    assert thread.canceled
    thread.join(60)
    assert not thread.is_alive()