Skip to content

Commit 9cf2593

Browse files
committed
Both ways should return the same result.
1 parent 6e20a60 commit 9cf2593

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_04_key_jar.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,3 +973,15 @@ def test_contains():
973973

974974
assert 'Bob' in kj
975975
assert 'David' not in kj
976+
977+
978+
def test_similar():
979+
ISSUER = "xyzzy"
980+
981+
kj = KeyJar()
982+
kb = KeyBundle(JWK2)
983+
kj.add_kb(issuer=ISSUER, kb=kb)
984+
985+
keys1 = kj.get_issuer_keys(ISSUER)
986+
keys2 = kj[ISSUER].all_keys()
987+
assert keys1 == keys2

0 commit comments

Comments
 (0)