aboutsummaryrefslogtreecommitdiff
path: root/unittest/test_bindings.py
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-28 09:21:46 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:57 +0200
commit996be7c13dde957b2f7e797003d6570102b67614 (patch)
tree0cb37252c08d759a2ea14d64eb57d9ef7315dbab /unittest/test_bindings.py
parentee1b7b46dbb5a853bc750232d89d14e0e6550a5d (diff)
downloadlibnitrokey-996be7c13dde957b2f7e797003d6570102b67614.tar.gz
libnitrokey-996be7c13dde957b2f7e797003d6570102b67614.tar.bz2
Preconditions for PWS login_password test
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_bindings.py')
-rw-r--r--unittest/test_bindings.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/unittest/test_bindings.py b/unittest/test_bindings.py
index 59ca07f..f79759b 100644
--- a/unittest/test_bindings.py
+++ b/unittest/test_bindings.py
@@ -82,6 +82,7 @@ def test_get_password_safe_slot_name(C):
def test_get_password_safe_slot_login_password(C):
assert C.NK_enable_password_safe(DefaultPasswords.USER) == DeviceErrorCode.STATUS_OK
+ assert C.NK_write_password_safe_slot(0, 'slotname1', 'login1', 'pass1') == DeviceErrorCode.STATUS_OK
slot_login = C.NK_get_password_safe_slot_login(0)
assert C.NK_get_last_command_status() == DeviceErrorCode.STATUS_OK
assert gs(slot_login) == 'login1'