feature(keyringctl): raise exception on duplicate uid data
This commit is contained in:
@ -423,6 +423,22 @@ def test_convert_signature_packet(
|
||||
"bar",
|
||||
does_not_raise(),
|
||||
),
|
||||
(
|
||||
Path("foo.asc"),
|
||||
[
|
||||
Path("--PublicKey"),
|
||||
Path("--Signature"),
|
||||
Path("--UserID"),
|
||||
Path("--UserID"),
|
||||
],
|
||||
[
|
||||
"".join(choice("ABCDEF" + digits) for _ in range(40)),
|
||||
"foo <foo@bar.com>",
|
||||
"foo <foo@bar.com>",
|
||||
],
|
||||
"bar",
|
||||
raises(Exception),
|
||||
),
|
||||
(
|
||||
Path("foo.asc"),
|
||||
[
|
||||
|
Reference in New Issue
Block a user