diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-11-09 19:20:51 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-12-03 16:01:49 +0100 |
commit | b94d61b2f3c446c46ac2f660d954841d740782f5 (patch) | |
tree | c3713f74a99c9bad70124a1bbf7b1bf4660d2a4c /unittest/test_pro.py | |
parent | 90bf7f564c50bf48799056179dbc5a09b7782d27 (diff) | |
download | libnitrokey-b94d61b2f3c446c46ac2f660d954841d740782f5.tar.gz libnitrokey-b94d61b2f3c446c46ac2f660d954841d740782f5.tar.bz2 |
Detect Pro 0.8
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_pro.py')
-rw-r--r-- | unittest/test_pro.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/test_pro.py b/unittest/test_pro.py index 6ab2af9..c7772d6 100644 --- a/unittest/test_pro.py +++ b/unittest/test_pro.py @@ -2,7 +2,7 @@ import pytest from constants import DefaultPasswords, DeviceErrorCode, RFC_SECRET from misc import ffi, gs, wait, cast_pointer_to_tuple -from misc import is_pro_rtm_07, is_storage +from misc import is_pro_rtm_07, is_pro_rtm_08, is_storage def test_enable_password_safe(C): assert C.NK_lock_device() == DeviceErrorCode.STATUS_OK @@ -61,7 +61,7 @@ def test_password_safe_slot_status(C): def test_issue_device_locks_on_second_key_generation_in_sequence(C): - if is_pro_rtm_07(C): + if is_pro_rtm_07(C) or is_pro_rtm_08(C): pytest.skip("issue to register: device locks up " "after below commands sequence (reinsertion fixes), skipping for now") assert C.NK_build_aes_key(DefaultPasswords.ADMIN) == DeviceErrorCode.STATUS_OK |