Skip to content

Commit 319e707

Browse files
committed
test: Add test for invalid MF with strict validation disabled
1 parent 9c6b3d1 commit 319e707

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_codec.py

+3
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,9 @@ def test_iscc_validate_mf_invalid():
666666
ic.iscc_validate_mf(sample, strict=True)
667667
assert str(excinfo.value) == "Header expects 32 but got 26 bytes"
668668

669+
INVALID_MF_B32H = "vpg0i00b2jtnrtm1c0v6"
670+
assert ic.iscc_validate_mf(INVALID_MF_B32H, strict=False) is False
671+
669672

670673
def test_iscc_validate_mscdi():
671674
sample = "ISCC:KEDRRHYRYJ7XELW7HAO5FFGQRX75HJUKSUSZVWTTRNHTF2YL5SKP7XIUFXM4KMKXEZZA"

0 commit comments

Comments
 (0)