mirror of
https://github.com/trussed-dev/fido2-tests.git
synced 2026-06-20 04:16:30 -07:00
19 lines
328 B
Python
19 lines
328 B
Python
import time
|
|
import pytest
|
|
from fido2.ctap import CtapError
|
|
|
|
import tests
|
|
|
|
|
|
def test_reset(device):
|
|
device.reset()
|
|
|
|
def test_reset_after_10s_fails(device):
|
|
device.reboot()
|
|
time.sleep(10.1)
|
|
with pytest.raises(CtapError) as e:
|
|
device.ctap2.reset()
|
|
assert e.value.code == CtapError.ERR.NOT_ALLOWED
|
|
|
|
|