diff --git a/tests/pico-fido/test_020_register.py b/tests/pico-fido/test_020_register.py index 3a80e7d..bbb2dd1 100644 --- a/tests/pico-fido/test_020_register.py +++ b/tests/pico-fido/test_020_register.py @@ -147,6 +147,8 @@ def test_bad_type_pubKeyCredParams_alg(device): with pytest.raises(CtapError) as e: device.doMC(key_params=[{"alg": "7", "type": "public-key"}]) + assert e.value.code == CtapError.ERR.CBOR_UNEXPECTED_TYPE + def test_unsupported_algorithm(device): with pytest.raises(CtapError) as e: device.doMC(key_params=[{"alg": 1337, "type": "public-key"}])