summaryrefslogtreecommitdiff
path: root/unittest/test_storage.py
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-12-12 17:31:36 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2018-02-23 15:42:37 +0100
commit025774fc3759683a8ec0f6b1598b1e34b550e6d5 (patch)
treed2dfb91526189ad37ffa209c8fa43b3528d14bf1 /unittest/test_storage.py
parent0363caa230c06f920c9bd6bd9ecc349d322af016 (diff)
downloadlibnitrokey-025774fc3759683a8ec0f6b1598b1e34b550e6d5.tar.gz
libnitrokey-025774fc3759683a8ec0f6b1598b1e34b550e6d5.tar.bz2
Tests: set debug level from environment variable, show connected device model and version
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_storage.py')
-rw-r--r--unittest/test_storage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/unittest/test_storage.py b/unittest/test_storage.py
index 9d39371..f3fd801 100644
--- a/unittest/test_storage.py
+++ b/unittest/test_storage.py
@@ -53,6 +53,8 @@ def test_get_status_storage(C):
status_dict = get_dict_from_dissect(status_string.decode('ascii'))
default_admin_password_retry_count = 3
assert int(status_dict['AdminPwRetryCount']) == default_admin_password_retry_count
+ print('C.NK_get_major_firmware_version(): {}'.format(C.NK_get_major_firmware_version()))
+ print('C.NK_get_minor_firmware_version(): {}'.format(C.NK_get_minor_firmware_version()))
@pytest.mark.other