aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 10:05:16 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 10:19:25 +0200
commite9102116a9a91eb6697de5ac1a9ded597efcc6ef (patch)
tree801c7346fd4f8beba44e70377b89444513c9264b
parent0a32f4c7b08955c5b687c9d92bb43b945c6ad56e (diff)
downloadlibnitrokey-e9102116a9a91eb6697de5ac1a9ded597efcc6ef.tar.gz
libnitrokey-e9102116a9a91eb6697de5ac1a9ded597efcc6ef.tar.bz2
Check command status for set_time during TOTP tests
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-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 6413d59..36dc4a3 100644
--- a/unittest/test_bindings.py
+++ b/unittest/test_bindings.py
@@ -286,7 +286,7 @@ def test_TOTP_RFC_no_pin_protection(C):
(1234567890, 0x000000000273EF07, 89005924),
]
for t, T, code in test_data:
- C.NK_totp_set_time(t)
+ assert C.NK_totp_set_time(t) == DeviceErrorCode.STATUS_OK
r = C.NK_get_totp_code(1, T, 0, 30) # FIXME T is not changing the outcome
assert code == r