diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-06-27 09:42:18 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-09-20 12:47:04 +0200 |
commit | f53e5e799fe111bcf0b8ed71710e00000e097aca (patch) | |
tree | 86cae293e8369a6bed90e7252d571eb872452edb /unittest | |
parent | bda5bab9646d3abc6e7209618d8e6f26208274a9 (diff) | |
download | libnitrokey-f53e5e799fe111bcf0b8ed71710e00000e097aca.tar.gz libnitrokey-f53e5e799fe111bcf0b8ed71710e00000e097aca.tar.bz2 |
Tests: do additional authentication for Pro 0.7
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest')
-rw-r--r-- | unittest/test_pro.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unittest/test_pro.py b/unittest/test_pro.py index 3f1f0a3..c292940 100644 --- a/unittest/test_pro.py +++ b/unittest/test_pro.py @@ -727,6 +727,8 @@ def test_HOTP_secrets(C, secret): DefaultPasswords.ADMIN_TEMP) == DeviceErrorCode.STATUS_OK dev_res = [] lib_res = [] + # repeat authentication for Pro 0.7 + assert C.NK_first_authenticate(DefaultPasswords.ADMIN, DefaultPasswords.ADMIN_TEMP) == DeviceErrorCode.STATUS_OK assert C.NK_write_hotp_slot(slot_number, 'secret' + str(len(secret)), secret, counter, use_8_digits, False, False, "", DefaultPasswords.ADMIN_TEMP) == DeviceErrorCode.STATUS_OK code_device = gs(C.NK_get_hotp_code(slot_number)) |