summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-09 11:49:20 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-09 18:34:00 +0200
commit07ff4e8e935ba36b93b228e7ec268340e71ada77 (patch)
tree891722df2a81ca23581f0db72e0eada96d84c141 /unittest
parent08e63f308f5322040794be1e768f0dd400d43a06 (diff)
downloadlibnitrokey-07ff4e8e935ba36b93b228e7ec268340e71ada77.tar.gz
libnitrokey-07ff4e8e935ba36b93b228e7ec268340e71ada77.tar.bz2
Test Status command
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest')
-rw-r--r--unittest/test_bindings.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/unittest/test_bindings.py b/unittest/test_bindings.py
index 0b071d5..7816f41 100644
--- a/unittest/test_bindings.py
+++ b/unittest/test_bindings.py
@@ -449,3 +449,9 @@ def test_clear(C):
print(d)
C.clear_password(d)
print(d)
+
+
+def test_get_status(C):
+ status = C.NK_status()
+ s = gs(status)
+ assert len(s) > 0