summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-26 11:36:04 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:57 +0200
commit39b7c99bbd00c0bc4906939ceefb724a3d9ddc35 (patch)
tree16e13a656aeeccb1b14193c33e8728462d32c8d0 /unittest
parent8a938be4ffa97490d89206cc1fd079a057cfc65c (diff)
downloadlibnitrokey-39b7c99bbd00c0bc4906939ceefb724a3d9ddc35.tar.gz
libnitrokey-39b7c99bbd00c0bc4906939ceefb724a3d9ddc35.tar.bz2
Handle locking device
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest')
-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 51e1233..ec7608e 100644
--- a/unittest/test_bindings.py
+++ b/unittest/test_bindings.py
@@ -50,7 +50,7 @@ def C(request):
def test_enable_password_safe(C):
- # lock device
+ assert C.NK_lock_device() == DeviceErrorCode.STATUS_OK
assert C.NK_enable_password_safe('wrong_password') == DeviceErrorCode.WRONG_PASSWORD
assert C.NK_enable_password_safe(DefaultPasswords.USER) == DeviceErrorCode.STATUS_OK