mirror of
https://github.com/romanz/amodem.git
synced 2026-04-05 12:16:24 +08:00
decode: raise an error when keygrip is missing
This commit is contained in:
@@ -56,3 +56,8 @@ def test_has_custom_subpacket():
|
||||
for marker in custom_markers:
|
||||
sig = {'unhashed_subpackets': [marker]}
|
||||
assert decode.has_custom_subpacket(sig)
|
||||
|
||||
|
||||
def test_load_by_keygrip_missing():
|
||||
with pytest.raises(KeyError):
|
||||
decode.load_by_keygrip(pubkey_bytes=b'', keygrip=b'')
|
||||
|
||||
Reference in New Issue
Block a user