Skip to content

Commit

Permalink
test: Add test for invalid MF with strict validation disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
titusz committed Nov 18, 2024
1 parent 9c6b3d1 commit 319e707
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,9 @@ def test_iscc_validate_mf_invalid():
ic.iscc_validate_mf(sample, strict=True)
assert str(excinfo.value) == "Header expects 32 but got 26 bytes"

INVALID_MF_B32H = "vpg0i00b2jtnrtm1c0v6"
assert ic.iscc_validate_mf(INVALID_MF_B32H, strict=False) is False


def test_iscc_validate_mscdi():
sample = "ISCC:KEDRRHYRYJ7XELW7HAO5FFGQRX75HJUKSUSZVWTTRNHTF2YL5SKP7XIUFXM4KMKXEZZA"
Expand Down

0 comments on commit 319e707

Please sign in to comment.