aboutsummaryrefslogtreecommitdiff
path: root/unittest/test_bindings.py
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-28 14:42:53 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:58 +0200
commita5f173f56e037f4f10a18bd0d5a7e316bbbf70c6 (patch)
tree7583723527f524a47f66e9bf151a5c0057a55a97 /unittest/test_bindings.py
parent22023e34c50fd9b6f8958e80128ad4c89cba94de (diff)
downloadlibnitrokey-a5f173f56e037f4f10a18bd0d5a7e316bbbf70c6.tar.gz
libnitrokey-a5f173f56e037f4f10a18bd0d5a7e316bbbf70c6.tar.bz2
Connect to Nitrokey Storage. Do not authenticate on test start
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_bindings.py')
-rw-r--r--unittest/test_bindings.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/unittest/test_bindings.py b/unittest/test_bindings.py
index 19db964..2fd45d9 100644
--- a/unittest/test_bindings.py
+++ b/unittest/test_bindings.py
@@ -39,8 +39,9 @@ def C(request):
C = ffi.dlopen("../build/libnitrokey.so")
C.NK_set_debug(False)
- C.NK_login('P')
- assert C.NK_user_authenticate(DefaultPasswords.USER, DefaultPasswords.USER_TEMP) == DeviceErrorCode.STATUS_OK
+ C.NK_login('S')
+ # assert C.NK_first_authenticate(DefaultPasswords.ADMIN, DefaultPasswords.ADMIN_TEMP) == DeviceErrorCode.STATUS_OK
+ # assert C.NK_user_authenticate(DefaultPasswords.USER, DefaultPasswords.USER_TEMP) == DeviceErrorCode.STATUS_OK
# C.NK_status()