Skip to content

Commit 06e0842

Browse files
lint
1 parent 1706db2 commit 06e0842

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/unit/test_streaming_client_stream_decryptor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1126,12 +1126,12 @@ def test_GIVEN_materials_has_required_encryption_context_keys_attr_WHEN_read_hea
11261126
test_decryptor._read_header()
11271127

11281128
# Then: Assert correctness of partitioned EC
1129-
for k, _ in encryption_context.items():
1129+
for k, v in encryption_context.items():
11301130
# If a key is in required_encryption_context_keys, then ...
11311131
if k in required_encryption_context_keys:
11321132
# ... its EC is in the StreamEncryptor._required_encryption_context
11331133
assert k in test_decryptor._required_encryption_context
1134-
assert test_decryptor._required_encryption_context[k] == encryption_context[k]
1134+
assert test_decryptor._required_encryption_context[k] == v
11351135
# If a key is NOT in required_encryption_context_keys, then ...
11361136
else:
11371137
# ... its EC is NOT in the StreamEncryptor._required_encryption_context

test/unit/test_streaming_client_stream_encryptor.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -512,12 +512,12 @@ def test_GIVEN_has_mpl_AND_encryption_materials_has_required_EC_keys_WHEN_prep_m
512512
test_encryptor._prep_message()
513513

514514
# Then: Assert correctness of partitioned EC
515-
for k, _ in encryption_context.items():
515+
for k, v in encryption_context.items():
516516
# If a key is in required_encryption_context_keys, then
517517
if k in required_encryption_context_keys:
518518
# 1) Its EC is in the StreamEncryptor._required_encryption_context
519519
assert k in test_encryptor._required_encryption_context
520-
assert test_encryptor._required_encryption_context[k] == encryption_context[k]
520+
assert test_encryptor._required_encryption_context[k] == v
521521
# 2) Its EC is NOT in the StreamEncryptor._stored_encryption_context
522522
assert k not in test_encryptor._stored_encryption_context
523523
# If a key is NOT in required_encryption_context_keys, then
@@ -526,7 +526,7 @@ def test_GIVEN_has_mpl_AND_encryption_materials_has_required_EC_keys_WHEN_prep_m
526526
assert k not in test_encryptor._required_encryption_context
527527
# 2) Its EC is in the StreamEncryptor._stored_encryption_context
528528
assert k in test_encryptor._stored_encryption_context
529-
assert test_encryptor._stored_encryption_context[k] == encryption_context[k]
529+
assert test_encryptor._stored_encryption_context[k] == v
530530

531531
# Assert size(stored_EC) + size(required_EC) == size(EC)
532532
# (i.e. every EC was sorted into one or the other)

0 commit comments

Comments
 (0)