From e9102116a9a91eb6697de5ac1a9ded597efcc6ef Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Fri, 5 Aug 2016 10:05:16 +0200 Subject: Check command status for set_time during TOTP tests Signed-off-by: Szczepan Zalega --- unittest/test_bindings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3