aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-11-22 12:37:57 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2018-11-22 12:40:13 +0100
commit3a2ee6c368a8233946473e60baa05c54eb822802 (patch)
treed80d7a5da0d66c435e6d338aa8651f5a9ce76b25
parent4ac4f1c33b64c9fc80bc911681143a3a52c1e5df (diff)
downloadlibnitrokey-3a2ee6c368a8233946473e60baa05c54eb822802.tar.gz
libnitrokey-3a2ee6c368a8233946473e60baa05c54eb822802.tar.bz2
Run enabling firmware update mode, but with wrong password only
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--unittest/test_storage.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/unittest/test_storage.py b/unittest/test_storage.py
index 096709d..2aa8441 100644
--- a/unittest/test_storage.py
+++ b/unittest/test_storage.py
@@ -352,13 +352,14 @@ def test_change_update_password(C):
assert C.NK_change_update_password(DefaultPasswords.UPDATE_TEMP, DefaultPasswords.UPDATE) == DeviceErrorCode.STATUS_OK
-@pytest.mark.skip(reason='no reversing method added yet')
+# @pytest.mark.skip(reason='no reversing method added yet')
@pytest.mark.update
def test_enable_firmware_update(C):
skip_if_device_version_lower_than({'S': 50})
wrong_password = b'aaaaaaaaaaa'
assert C.NK_enable_firmware_update(wrong_password) == DeviceErrorCode.WRONG_PASSWORD
- assert C.NK_enable_firmware_update(DefaultPasswords.UPDATE) == DeviceErrorCode.STATUS_OK
+ # skip actual test - reason: no reversing method added yet
+ # assert C.NK_enable_firmware_update(DefaultPasswords.UPDATE) == DeviceErrorCode.STATUS_OK
@pytest.mark.other