aboutsummaryrefslogtreecommitdiff
path: root/unittest/test_pro.py
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-12-12 15:10:55 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2016-12-12 15:10:55 +0100
commit5e02e1e198c1c4051f15c45dfeb67b9be2cd5aa1 (patch)
tree0a939dd1d708b15f75fbf08ebd3e4b458e132609 /unittest/test_pro.py
parent925d75007161aa845e8c29ac412ac875cf45f337 (diff)
downloadlibnitrokey-5e02e1e198c1c4051f15c45dfeb67b9be2cd5aa1.tar.gz
libnitrokey-5e02e1e198c1c4051f15c45dfeb67b9be2cd5aa1.tar.bz2
Tests: skip edit OTP slot test for NK Storage 0.44
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_pro.py')
-rw-r--r--unittest/test_pro.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/unittest/test_pro.py b/unittest/test_pro.py
index a6f7094..4a2a504 100644
--- a/unittest/test_pro.py
+++ b/unittest/test_pro.py
@@ -695,6 +695,9 @@ def test_edit_OTP_slot(C):
"""
should change slots counter and name without changing its secret (using null secret for second update)
"""
+ # counter does not reset under Storage v0.43
+ skip_if_device_version_lower_than({'S': 44, 'P': 7})
+
secret = RFC_SECRET
counter = 0
PIN_protection = False