diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-11-22 12:37:57 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-11-22 12:40:13 +0100 |
commit | 3a2ee6c368a8233946473e60baa05c54eb822802 (patch) | |
tree | d80d7a5da0d66c435e6d338aa8651f5a9ce76b25 /unittest/test_storage.py | |
parent | 4ac4f1c33b64c9fc80bc911681143a3a52c1e5df (diff) | |
download | libnitrokey-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>
Diffstat (limited to 'unittest/test_storage.py')
-rw-r--r-- | unittest/test_storage.py | 5 |
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 |