Skip to content

Commit 0fa5db9

Browse files
committed
Name should probably be first parameter.
1 parent 281d5a3 commit 0fa5db9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

aslist_tests/test_44_key_issuer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def test_keys_by_alg_and_usage():
553553

554554

555555
def test_copy():
556-
issuer = KeyIssuer('Alice', storage_conf=STORAGE_CONFIG)
556+
issuer = KeyIssuer(name='Alice', storage_conf=STORAGE_CONFIG)
557557
issuer.add_kb(KeyBundle(JWK0['keys'], storage_conf=STORAGE_CONFIG))
558558
issuer_copy = issuer.copy()
559559

@@ -562,10 +562,10 @@ def test_copy():
562562

563563

564564
def test_repr():
565-
issuer = KeyIssuer('Alice', storage_conf=STORAGE_CONFIG)
565+
issuer = KeyIssuer(name='Alice', storage_conf=STORAGE_CONFIG)
566566
issuer.add_kb(KeyBundle(JWK0['keys'], storage_conf=STORAGE_CONFIG))
567567
txt = issuer.__repr__()
568-
assert "<KeyIssuer(KeyBundles=" in txt
568+
assert '<KeyIssuer "Alice"(KeyBundles=' in txt
569569

570570

571571
def test_load_keys():
@@ -578,7 +578,7 @@ def test_load_keys():
578578
def test_find():
579579
_path = full_path('../tests/jwk_private_key.json')
580580
kb = KeyBundle(source='file://{}'.format(_path), storage_conf=STORAGE_CONFIG)
581-
issuer = KeyIssuer('Alice', storage_conf=STORAGE_CONFIG)
581+
issuer = KeyIssuer(name='Alice', storage_conf=STORAGE_CONFIG)
582582
issuer.add_kb(kb)
583583

584584
assert issuer.find('{}'.format(_path))

0 commit comments

Comments
 (0)