File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -318,22 +318,22 @@ def assert_expected_attrs(
318
318
False
319
319
), f"Unsupported container & policy type pair [{ tdfs .simple_container (c )} & { pt } ]"
320
320
return
321
- policy : tdfs .PolicyBody
321
+ policy : tdfs .Policy
322
322
match tdfs .simple_container (c ):
323
323
case "nano" :
324
324
envelope = nano .parse (f .read ())
325
325
assert envelope .header .version .version == 12
326
326
assert envelope .header .policy .policy_type == nano .PolicyType .EMBEDDED
327
327
assert envelope .header .policy .embedded
328
- policy = tdfs .PolicyBody .model_validate_json (
328
+ policy = tdfs .Policy .model_validate_json (
329
329
envelope .header .policy .embedded
330
330
)
331
331
case _:
332
332
manifest = tdfs .manifest (ct_file )
333
- policy_with_uuid = manifest .encryptionInformation .policy_object
334
- policy = policy_with_uuid .body
333
+ policy = manifest .encryptionInformation .policy_object
335
334
336
- assert not policy .dissem
337
- assert policy .dataAttributes is not None
338
- attrs = [v .attribute for v in policy .dataAttributes ]
335
+ assert policy .body
336
+ assert not policy .body .dissem
337
+ assert policy .body .dataAttributes
338
+ attrs = [v .attribute for v in policy .body .dataAttributes ]
339
339
assert sorted (attrs ) == sorted (fqns )
You can’t perform that action at this time.
0 commit comments