aboutsummaryrefslogtreecommitdiff
path: root/unittest/test_bindings.py
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 20:30:34 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 20:30:34 +0200
commit137a28c05ceacd0427fe1fb25b5a184d6b96985c (patch)
tree97d8bcf3d4c3ec01cdf055b0656623f9c118c616 /unittest/test_bindings.py
parent128894cd1ce9120b3774af3ea996a1dc3b76b427 (diff)
downloadlibnitrokey-137a28c05ceacd0427fe1fb25b5a184d6b96985c.tar.gz
libnitrokey-137a28c05ceacd0427fe1fb25b5a184d6b96985c.tar.bz2
Readme: login before accessing the device. Tests: change device to Nitrokey Pro
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_bindings.py')
-rw-r--r--unittest/test_bindings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittest/test_bindings.py b/unittest/test_bindings.py
index 9540888..afe7d0d 100644
--- a/unittest/test_bindings.py
+++ b/unittest/test_bindings.py
@@ -39,7 +39,7 @@ def C(request):
C = ffi.dlopen("../build/libnitrokey.so")
C.NK_set_debug(False)
- C.NK_login('S')
+ C.NK_login('P')
# 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