Skip to content

Commit

Permalink
test invalid argument for verify_root
Browse files Browse the repository at this point in the history
  • Loading branch information
dholth committed Aug 21, 2023
1 parent c5c7eae commit cfd3f36
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,12 @@ def test_verify_root():
root_v1_edited["signed"]["delegations"]["root"]["threshold"] += 1
verify_root(root_v1_edited, TEST_ROOT_MD_V2)

# Reset.
root_v1_edited["signed"]["delegations"]["root"]["threshold"] -= 1
root_v2_edited["signed"]["type"] = "key_mgr"
with pytest.raises(
ValueError,
match='Expected two instances of root metadata.',
):
verify_root(TEST_ROOT_MD_V1, root_v2_edited)


# def test_verify_delegation():
Expand Down

0 comments on commit cfd3f36

Please sign in to comment.