summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-12-09 12:44:33 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2016-12-09 14:06:50 +0100
commit87eaf78c7c7290764ccaebe67726b77a44f21240 (patch)
tree11b448854abc99e09e87bd2d7c47225f4b0eda90
parente513f430851ad9645aff53df32813a5343c697c1 (diff)
downloadlibnitrokey-87eaf78c7c7290764ccaebe67726b77a44f21240.tar.gz
libnitrokey-87eaf78c7c7290764ccaebe67726b77a44f21240.tar.bz2
Remove old skipping code. Feature comment.
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--unittest/test_library.py5
-rw-r--r--unittest/test_pro.py7
2 files changed, 3 insertions, 9 deletions
diff --git a/unittest/test_library.py b/unittest/test_library.py
index ec00a5a..b24c72a 100644
--- a/unittest/test_library.py
+++ b/unittest/test_library.py
@@ -58,11 +58,6 @@ def test_warning_binary_bigger_than_secret_buffer(C):
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
-
-
@pytest.mark.skip(reason='Experimental')
def test_clear(C):
d = 'asdasdasd'
diff --git a/unittest/test_pro.py b/unittest/test_pro.py
index 3282436..ab30e04 100644
--- a/unittest/test_pro.py
+++ b/unittest/test_pro.py
@@ -635,13 +635,12 @@ def test_TOTP_secrets(C, secret):
@pytest.mark.parametrize("secret", [RFC_SECRET, 2*RFC_SECRET, '12'*10, '12'*30] )
def test_HOTP_secrets(C, secret):
- '''
+ """
NK Pro 0.8+, NK Storage 0.44+
- '''
+ feature needed: support for 320bit secrets
+ """
skip_if_device_version_lower_than({'S': 44, 'P': 8})
- if is_pro_rtm_07(C) and len(secret)>20*2: #*2 since secret is in hex
- pytest.skip("Secret lengths over 20 bytes are not supported by NK Pro 0.7 ")
slot_number = 0
counter = 0
oath = pytest.importorskip("oath")