diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-09-20 12:54:01 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-09-20 12:54:01 +0200 |
commit | 7a04ee7dd3fad10e30581d22956234aeff2b2f3a (patch) | |
tree | 99770ff5bebd0816fd74e830e4308276b960dc9f /unittest | |
parent | 8f7435e4553916e6cc431e4b5316cc5861fd9063 (diff) | |
parent | a83419fe4a13bc77005d455dd89685b8c1443d96 (diff) | |
download | libnitrokey-7a04ee7dd3fad10e30581d22956234aeff2b2f3a.tar.gz libnitrokey-7a04ee7dd3fad10e30581d22956234aeff2b2f3a.tar.bz2 |
Merge branch 'osx-communication_issues' into OSX_merge_cleaned
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)) |