Exemple #1
0
def test_getState_locked():
    h = Hanoi(4, 0, 2)
    h._lock.acquire()
    with pytest.raises(TimeoutError):
        h.getState(0)
Exemple #2
0
def test_getState_happy_path():
    h = Hanoi(4, 0, 2)
    assert h.getState()