|
68 | 68 | "EncryptionMaterials": dict(
|
69 | 69 | algorithm=ALGORITHM,
|
70 | 70 | data_encryption_key=_DATA_KEY,
|
71 |
| - encrypted_data_keys=set([]), |
| 71 | + encrypted_data_keys=[], |
72 | 72 | encryption_context={},
|
73 | 73 | signing_key=_SIGNING_KEY.key_bytes(),
|
74 | 74 | ),
|
75 |
| - "DecryptionMaterialsRequest": dict(algorithm=ALGORITHM, encrypted_data_keys=set([]), encryption_context={}), |
| 75 | + "DecryptionMaterialsRequest": dict(algorithm=ALGORITHM, encrypted_data_keys=[], encryption_context={}), |
76 | 76 | "DecryptionMaterials": dict(
|
77 | 77 | data_key=_DATA_KEY, verification_key=_VERIFICATION_KEY.key_bytes(), algorithm=ALGORITHM, encryption_context={}
|
78 | 78 | ),
|
@@ -143,7 +143,7 @@ def test_encryption_materials_request_attributes_defaults():
|
143 | 143 |
|
144 | 144 | def test_encryption_materials_defaults():
|
145 | 145 | test = EncryptionMaterials(
|
146 |
| - algorithm=ALGORITHM, data_encryption_key=_DATA_KEY, encrypted_data_keys=set([]), encryption_context={} |
| 146 | + algorithm=ALGORITHM, data_encryption_key=_DATA_KEY, encrypted_data_keys=[], encryption_context={} |
147 | 147 | )
|
148 | 148 | assert test.signing_key is None
|
149 | 149 |
|
@@ -229,15 +229,15 @@ def test_immutable_encrypted_data_keys():
|
229 | 229 | materials = EncryptionMaterials(**_VALID_KWARGS["EncryptionMaterials"])
|
230 | 230 |
|
231 | 231 | with pytest.raises(AttributeError):
|
232 |
| - materials.encrypted_data_keys.add(42) |
| 232 | + materials.encrypted_data_keys.append(42) |
233 | 233 |
|
234 | 234 |
|
235 | 235 | def test_empty_encrypted_data_keys():
|
236 | 236 | materials = EncryptionMaterials(**_copy_and_update_kwargs("EncryptionMaterials", dict(encrypted_data_keys=_REMOVE)))
|
237 | 237 |
|
238 | 238 | edks = materials.encrypted_data_keys
|
239 | 239 |
|
240 |
| - assert isinstance(edks, frozenset) |
| 240 | + assert isinstance(edks, tuple) |
241 | 241 | assert not edks
|
242 | 242 |
|
243 | 243 |
|
|
0 commit comments