summaryrefslogtreecommitdiff
path: root/unittest/test_bindings.py
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 14:13:01 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 14:13:01 +0200
commitf82d0574b133b23f69755ec854f8686282dd58ef (patch)
tree6399f639589a728b6c6323e01047cfa5c420cdf9 /unittest/test_bindings.py
parent1fafa440eb80a98d2ae889d7aaf65b3804b7d008 (diff)
downloadlibnitrokey-f82d0574b133b23f69755ec854f8686282dd58ef.tar.gz
libnitrokey-f82d0574b133b23f69755ec854f8686282dd58ef.tar.bz2
Show test parameters names in test name
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_bindings.py')
-rw-r--r--unittest/test_bindings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/test_bindings.py b/unittest/test_bindings.py
index 654bb2c..ace0609 100644
--- a/unittest/test_bindings.py
+++ b/unittest/test_bindings.py
@@ -250,7 +250,7 @@ def check_HOTP_RFC_codes(C, func, prep=None, use_8_digits=False):
@pytest.mark.parametrize("use_8_digits", [False, True, ])
@pytest.mark.parametrize("use_pin_protection", [False, True, ])
-def test_HOTP_RFC_8digits_pin(C, use_8_digits, use_pin_protection):
+def test_HOTP_RFC_use8digits_usepin(C, use_8_digits, use_pin_protection):
assert C.NK_first_authenticate(DefaultPasswords.ADMIN, DefaultPasswords.ADMIN_TEMP) == DeviceErrorCode.STATUS_OK
assert C.NK_write_config(255, 255, 255, use_pin_protection, not use_pin_protection,
DefaultPasswords.ADMIN_TEMP) == DeviceErrorCode.STATUS_OK
@@ -266,7 +266,7 @@ def test_HOTP_RFC_8digits_pin(C, use_8_digits, use_pin_protection):
@pytest.mark.xfail(reason="firmware bug: set time command not always changes the time on stick thus failing this test, "
"this does not influence normal use since setting time is not done every TOTP code request")
@pytest.mark.parametrize("PIN_protection", [False, True, ])
-def test_TOTP_RFC(C, PIN_protection):
+def test_TOTP_RFC_usepin(C, PIN_protection):
assert C.NK_first_authenticate(DefaultPasswords.ADMIN, DefaultPasswords.ADMIN_TEMP) == DeviceErrorCode.STATUS_OK
assert C.NK_write_config(255, 255, 255, PIN_protection, not PIN_protection,
DefaultPasswords.ADMIN_TEMP) == DeviceErrorCode.STATUS_OK