Skip to content

Commit 2b1e747

Browse files
committed
fix: Clarify comment
1 parent 5d967cd commit 2b1e747

File tree

1 file changed

+50
-50
lines changed

1 file changed

+50
-50
lines changed

tests/test_unit_tests.py

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,8 +1000,8 @@ def test_streams_sign_with_es256_alg_v1_manifest(self):
10001000
json_data = reader.json()
10011001
self.assertIn("Python Test", json_data)
10021002
# Needs trust configuration to be set up to validate as Trusted,
1003-
# Or validation on read reports `signing certificate untrusted`
1004-
# (which makes the manifest Invalid)
1003+
# or validation_status on read reports `signing certificate untrusted`
1004+
# which makes the manifest validation_state become Invalid.
10051005
self.assertIn("Invalid", json_data)
10061006

10071007
# Write buffer to file
@@ -1028,8 +1028,8 @@ def test_streams_sign_with_es256_alg_v1_manifest_to_existing_empty_file(self):
10281028
json_data = reader.json()
10291029
self.assertIn("Python Test", json_data)
10301030
# Needs trust configuration to be set up to validate as Trusted,
1031-
# Or validation on read reports `signing certificate untrusted`
1032-
# (which makes the manifest Invalid)
1031+
# or validation_status on read reports `signing certificate untrusted`
1032+
# which makes the manifest validation_state become Invalid.
10331033
self.assertIn("Invalid", json_data)
10341034

10351035
finally:
@@ -1057,8 +1057,8 @@ def test_streams_sign_with_es256_alg_v1_manifest_to_new_dest_file(self):
10571057
json_data = reader.json()
10581058
self.assertIn("Python Test", json_data)
10591059
# Needs trust configuration to be set up to validate as Trusted,
1060-
# Or validation on read reports `signing certificate untrusted`
1061-
# (which makes the manifest Invalid)
1060+
# or validation_status on read reports `signing certificate untrusted`
1061+
# which makes the manifest validation_state become Invalid.
10621062
self.assertIn("Invalid", json_data)
10631063

10641064
finally:
@@ -1082,8 +1082,8 @@ def test_streams_sign_with_es256_alg(self):
10821082
json_data = reader.json()
10831083
self.assertIn("Python Test", json_data)
10841084
# Needs trust configuration to be set up to validate as Trusted,
1085-
# Or validation on read reports `signing certificate untrusted`
1086-
# (which makes the manifest Invalid)
1085+
# or validation_status on read reports `signing certificate untrusted`
1086+
# which makes the manifest validation_state become Invalid.
10871087
self.assertIn("Invalid", json_data)
10881088
output.close()
10891089

@@ -1097,8 +1097,8 @@ def test_streams_sign_with_es256_alg_2(self):
10971097
json_data = reader.json()
10981098
self.assertIn("Python Test", json_data)
10991099
# Needs trust configuration to be set up to validate as Trusted,
1100-
# Or validation on read reports `signing certificate untrusted`
1101-
# (which makes the manifest Invalid)
1100+
# or validation_status on read reports `signing certificate untrusted`
1101+
# which makes the manifest validation_state become Invalid.
11021102
self.assertIn("Invalid", json_data)
11031103
output.close()
11041104

@@ -1173,8 +1173,8 @@ def test_sign_with_ed25519_alg(self):
11731173
json_data = reader.json()
11741174
self.assertIn("Python Test", json_data)
11751175
# Needs trust configuration to be set up to validate as Trusted,
1176-
# Or validation on read reports `signing certificate untrusted`
1177-
# (which makes the manifest Invalid)
1176+
# or validation_status on read reports `signing certificate untrusted`
1177+
# which makes the manifest validation_state become Invalid.
11781178
self.assertIn("Invalid", json_data)
11791179
output.close()
11801180

@@ -1261,8 +1261,8 @@ def test_sign_with_ed25519_alg_2(self):
12611261
json_data = reader.json()
12621262
self.assertIn("Python Test", json_data)
12631263
# Needs trust configuration to be set up to validate as Trusted,
1264-
# Or validation on read reports `signing certificate untrusted`
1265-
# (which makes the manifest Invalid)
1264+
# or validation_status on read reports `signing certificate untrusted`
1265+
# which makes the manifest validation_state become Invalid.
12661266
self.assertIn("Invalid", json_data)
12671267
output.close()
12681268

@@ -1289,8 +1289,8 @@ def test_sign_with_ps256_alg(self):
12891289
json_data = reader.json()
12901290
self.assertIn("Python Test", json_data)
12911291
# Needs trust configuration to be set up to validate as Trusted,
1292-
# Or validation on read reports `signing certificate untrusted`
1293-
# (which makes the manifest Invalid)
1292+
# or validation_status on read reports `signing certificate untrusted`
1293+
# which makes the manifest validation_state become Invalid.
12941294
self.assertIn("Invalid", json_data)
12951295
output.close()
12961296

@@ -1393,8 +1393,8 @@ def test_archive_sign(self):
13931393
json_data = reader.json()
13941394
self.assertIn("Python Test", json_data)
13951395
# Needs trust configuration to be set up to validate as Trusted,
1396-
# Or validation on read reports `signing certificate untrusted`
1397-
# (which makes the manifest Invalid)
1396+
# or validation_status on read reports `signing certificate untrusted`
1397+
# which makes the manifest validation_state become Invalid.
13981398
self.assertIn("Invalid", json_data)
13991399
archive.close()
14001400
output.close()
@@ -1466,8 +1466,8 @@ def test_archive_sign_with_added_ingredient(self):
14661466
json_data = reader.json()
14671467
self.assertIn("Python Test", json_data)
14681468
# Needs trust configuration to be set up to validate as Trusted,
1469-
# Or validation on read reports `signing certificate untrusted`
1470-
# (which makes the manifest Invalid)
1469+
# or validation_status on read reports `signing certificate untrusted`
1470+
# which makes the manifest validation_state become Invalid.
14711471
self.assertIn("Invalid", json_data)
14721472
archive.close()
14731473
output.close()
@@ -1676,8 +1676,8 @@ def test_sign_all_files(self):
16761676
json_data = reader.json()
16771677
self.assertIn("Python Test", json_data)
16781678
# Needs trust configuration to be set up to validate as Trusted,
1679-
# Or validation on read reports `signing certificate untrusted`
1680-
# (which makes the manifest Invalid)
1679+
# or validation_status on read reports `signing certificate untrusted`
1680+
# which makes the manifest validation_state become Invalid.
16811681
self.assertIn("Invalid", json_data)
16821682
reader.close()
16831683
output.close()
@@ -2210,8 +2210,8 @@ def test_sign_single(self):
22102210
json_data = reader.json()
22112211
self.assertIn("Python Test", json_data)
22122212
# Needs trust configuration to be set up to validate as Trusted,
2213-
# Or validation on read reports `signing certificate untrusted` (which makes the manifest Invalid)
2214-
# (which makes the manifest Invalid)
2213+
# or validation_status on read reports `signing certificate untrusted` (which makes the manifest Invalid)
2214+
# which makes the manifest validation_state become Invalid.
22152215
self.assertIn("Invalid", json_data)
22162216
output.close()
22172217

@@ -2228,8 +2228,8 @@ def test_sign_mp4_video_file_single(self):
22282228
json_data = reader.json()
22292229
self.assertIn("Python Test", json_data)
22302230
# Needs trust configuration to be set up to validate as Trusted,
2231-
# Or validation on read reports `signing certificate untrusted`
2232-
# (which makes the manifest Invalid)
2231+
# or validation_status on read reports `signing certificate untrusted`
2232+
# which makes the manifest validation_state become Invalid.
22332233
self.assertIn("Invalid", json_data)
22342234
output.close()
22352235

@@ -2246,8 +2246,8 @@ def test_sign_mov_video_file_single(self):
22462246
json_data = reader.json()
22472247
self.assertIn("Python Test", json_data)
22482248
# Needs trust configuration to be set up to validate as Trusted,
2249-
# Or validation on read reports `signing certificate untrusted`
2250-
# (which makes the manifest Invalid)
2249+
# or validation_status on read reports `signing certificate untrusted`
2250+
# which makes the manifest validation_state become Invalid.
22512251
self.assertIn("Invalid", json_data)
22522252
output.close()
22532253

@@ -2274,8 +2274,8 @@ def test_sign_file_tmn_wip(self):
22742274
json_data = reader.json()
22752275
self.assertIn("Python Test", json_data)
22762276
# Needs trust configuration to be set up to validate as Trusted,
2277-
# Or validation on read reports `signing certificate untrusted`
2278-
# (which makes the manifest Invalid)
2277+
# or validation_status on read reports `signing certificate untrusted`
2278+
# which makes the manifest validation_state become Invalid.
22792279
self.assertIn("Invalid", json_data)
22802280

22812281
finally:
@@ -2305,8 +2305,8 @@ def test_sign_file_video(self):
23052305
json_data = reader.json()
23062306
self.assertIn("Python Test", json_data)
23072307
# Needs trust configuration to be set up to validate as Trusted,
2308-
# Or validation on read reports `signing certificate untrusted`
2309-
# (which makes the manifest Invalid)
2308+
# or validation_status on read reports `signing certificate untrusted`
2309+
# which makes the manifest validation_state become Invalid.
23102310
self.assertIn("Invalid", json_data)
23112311

23122312
finally:
@@ -2360,8 +2360,8 @@ def test_builder_sign_file_callback_signer_from_callback(self):
23602360
json_data = reader.json()
23612361
self.assertIn("Python Test", json_data)
23622362
# Needs trust configuration to be set up to validate as Trusted,
2363-
# Or validation on read reports `signing certificate untrusted`
2364-
# (which makes the manifest Invalid)
2363+
# or validation_status on read reports `signing certificate untrusted`
2364+
# which makes the manifest validation_state become Invalid.
23652365
self.assertIn("Invalid", json_data)
23662366

23672367
# Parse the JSON and verify the signature algorithm
@@ -2414,8 +2414,8 @@ def test_builder_sign_file_callback_signer_from_callback_V2(self):
24142414
json_data = reader.json()
24152415
self.assertIn("Python Test", json_data)
24162416
# Needs trust configuration to be set up to validate as Trusted,
2417-
# Or validation on read reports `signing certificate untrusted`
2418-
# (which makes the manifest Invalid)
2417+
# or validation_status on read reports `signing certificate untrusted`
2418+
# which makes the manifest validation_state become Invalid.
24192419
self.assertIn("Invalid", json_data)
24202420

24212421
# Parse the JSON and verify the signature algorithm
@@ -2470,8 +2470,8 @@ def ed25519_callback(data: bytes) -> bytes:
24702470
json_data = reader.json()
24712471
self.assertIn("Python Test", json_data)
24722472
# Needs trust configuration to be set up to validate as Trusted,
2473-
# Or validation on read reports `signing certificate untrusted`
2474-
# (which makes the manifest Invalid)
2473+
# or validation_status on read reports `signing certificate untrusted`
2474+
# which makes the manifest validation_state become Invalid.
24752475
self.assertIn("Invalid", json_data)
24762476
reader.close()
24772477
output.close()
@@ -2497,8 +2497,8 @@ def test_signing_manifest_v2(self):
24972497
# Basic verification of the manifest
24982498
self.assertIn("Python Test Image V2", json_data)
24992499
# Needs trust configuration to be set up to validate as Trusted,
2500-
# Or validation on read reports `signing certificate untrusted`
2501-
# (which makes the manifest Invalid)
2500+
# or validation_status on read reports `signing certificate untrusted`
2501+
# which makes the manifest validation_state become Invalid.
25022502
self.assertIn("Invalid", json_data)
25032503

25042504
output.close()
@@ -2533,8 +2533,8 @@ def test_sign_file_mp4_video(self):
25332533
json_data = reader.json()
25342534
self.assertIn("Python Test", json_data)
25352535
# Needs trust configuration to be set up to validate as Trusted,
2536-
# Or validation on read reports `signing certificate untrusted`
2537-
# (which makes the manifest Invalid)
2536+
# or validation_status on read reports `signing certificate untrusted`
2537+
# which makes the manifest validation_state become Invalid.
25382538
self.assertIn("Invalid", json_data)
25392539

25402540
finally:
@@ -2564,17 +2564,17 @@ def test_sign_file_mov_video(self):
25642564
json_data = reader.json()
25652565
self.assertIn("Python Test", json_data)
25662566
# Needs trust configuration to be set up to validate as Trusted,
2567-
# Or validation on read reports `signing certificate untrusted`
2568-
# (which makes the manifest Invalid)
2567+
# or validation_status on read reports `signing certificate untrusted`
2568+
# which makes the manifest validation_state become Invalid.
25692569
self.assertIn("Invalid", json_data)
25702570

25712571
# Verify also signed file using manifest bytes
25722572
with Reader("mov", output_path, manifest_bytes) as reader:
25732573
json_data = reader.json()
25742574
self.assertIn("Python Test", json_data)
25752575
# Needs trust configuration to be set up to validate as Trusted,
2576-
# Or validation on read reports `signing certificate untrusted`
2577-
# (which makes the manifest Invalid)
2576+
# or validation_status on read reports `signing certificate untrusted`
2577+
# which makes the manifest validation_state become Invalid.
25782578
self.assertIn("Invalid", json_data)
25792579

25802580
finally:
@@ -2604,17 +2604,17 @@ def test_sign_file_mov_video_V2(self):
26042604
json_data = reader.json()
26052605
self.assertIn("Python Test", json_data)
26062606
# Needs trust configuration to be set up to validate as Trusted,
2607-
# Or validation on read reports `signing certificate untrusted`
2608-
# (which makes the manifest Invalid)
2607+
# or validation_status on read reports `signing certificate untrusted`
2608+
# which makes the manifest validation_state become Invalid.
26092609
self.assertIn("Invalid", json_data)
26102610

26112611
# Verify also signed file using manifest bytes
26122612
with Reader("mov", output_path, manifest_bytes) as reader:
26132613
json_data = reader.json()
26142614
self.assertIn("Python Test", json_data)
26152615
# Needs trust configuration to be set up to validate as Trusted,
2616-
# Or validation on read reports `signing certificate untrusted`
2617-
# (which makes the manifest Invalid)
2616+
# or validation_status on read reports `signing certificate untrusted`
2617+
# which makes the manifest validation_state become Invalid.
26182618
self.assertIn("Invalid", json_data)
26192619

26202620
finally:

0 commit comments

Comments
 (0)