diff options
| -rw-r--r-- | unittest/test_bindings.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/unittest/test_bindings.py b/unittest/test_bindings.py index 0290fd6..6413d59 100644 --- a/unittest/test_bindings.py +++ b/unittest/test_bindings.py @@ -162,8 +162,9 @@ def test_destroy_password_safe(C):  def test_is_AES_supported(C): -    aes_supported = C.NK_is_AES_supported(DefaultPasswords.USER) -    assert aes_supported == 1 +    assert C.NK_is_AES_supported('wrong password') != 1 +    assert C.NK_get_last_command_status() == DeviceErrorCode.WRONG_PASSWORD +    assert C.NK_is_AES_supported(DefaultPasswords.USER) == 1      assert C.NK_get_last_command_status() == DeviceErrorCode.STATUS_OK | 
