diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-10-19 16:05:46 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-10-19 16:55:06 +0200 |
commit | 48fba544b8fba67d9f624fa03e5db54461a452d4 (patch) | |
tree | 657f03d3b2b4a06d719a1ff6e833480e22f82174 /unittest/test_bindings.py | |
parent | 182e2d9b7b01ef0d681b9fb97d8bdc263507152c (diff) | |
download | libnitrokey-48fba544b8fba67d9f624fa03e5db54461a452d4.tar.gz libnitrokey-48fba544b8fba67d9f624fa03e5db54461a452d4.tar.bz2 |
Tests: template for testing OTP secrets starting from null
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_bindings.py')
-rw-r--r-- | unittest/test_bindings.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 |