Пример #1
0
def test_isComplete_locked():
    h = Hanoi(4, 0, 2)
    h._lock.acquire()
    with pytest.raises(TimeoutError):
        h.isComplete(0)
Пример #2
0
def test_isComplete_happy_path():
    h = Hanoi(4, 0, 2)
    assert not h.isComplete()