From f3ccdeb50255e940df0caa9b9cc5b232b5e2fbf8 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Wed, 20 Jul 2016 08:35:02 +0200 Subject: TOTP python tests Signed-off-by: Szczepan Zalega --- build/test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/test.py b/build/test.py index fa3a863..9d967ca 100644 --- a/build/test.py +++ b/build/test.py @@ -47,7 +47,7 @@ if __name__ == "__main__": s.append(C.NK_get_hotp_code(i)) print(repr(s)) print((s)) - C.NK_set_debug(True) + # C.NK_set_debug(True) s = [] C.NK_write_hotp_slot(1, 'python_test', '12345678901234567890', 0, '123123123') @@ -55,3 +55,6 @@ if __name__ == "__main__": for i in range(3): s.append(C.NK_get_hotp_code(1)) print((s)) + C.NK_set_debug(True) + C.NK_write_totp_slot(1, 'python_test', '12345678901234567890', 30, '123123123') + print ( C.NK_get_totp_code(1, 59, 0, 30) ) \ No newline at end of file -- cgit v1.2.1