Skip to content

Commit

Permalink
Unify line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
titusz committed Feb 11, 2022
1 parent 9a7e720 commit 5432b40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_iscc_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ def test_gen_iscc_id_v0_multiple_components():
assert ic.explain(iscc_id["iscc"]) == "ID-BITCOIN-V0-64-20351dfd6f9f7e3f"


def test_gen_iscc_id_v0_full_code():
iscc_code = "ISCC:KQDZJFP6WBM3IIFZ7CRXCNDCNUU3ZEWGL5HAKHNMYHLN2WULPN3ZFHJO7AUS6VQQVM7Q"
iscc_id = ic.gen_iscc_id(1, iscc_code=iscc_code)
assert iscc_id["iscc"] == "ISCC:MEADJVWXP67HW7NI"


def test_gen_iscc_id_v0_instance_only():
icode = ic.gen_instance_code_v0(io.BytesIO(b"hello world"))
iscc_id = ic.gen_iscc_id(0, icode["iscc"])
Expand Down

0 comments on commit 5432b40

Please sign in to comment.