From 48fba544b8fba67d9f624fa03e5db54461a452d4 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Wed, 19 Oct 2016 16:05:46 +0200 Subject: Tests: template for testing OTP secrets starting from null Signed-off-by: Szczepan Zalega --- unittest/test_bindings.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'unittest') diff --git a/unittest/test_bindings.py b/unittest/test_bindings.py index 5549606..f011d9b 100644 --- a/unittest/test_bindings.py +++ b/unittest/test_bindings.py @@ -644,3 +644,8 @@ def test_warning_binary_bigger_than_secret_buffer(C): invalid_hex_string = to_hex('1234567890') * 3 assert C.NK_write_hotp_slot(1, 'slot_name', invalid_hex_string, 0, True, False, False, '', DefaultPasswords.ADMIN_TEMP) == LibraryErrors.TARGET_BUFFER_SIZE_SMALLER_THAN_SOURCE + + +@pytest.mark.xfail(reason="TODO") +def test_OTP_secret_started_from_null(C): + assert False -- cgit v1.2.1