File: test_humanize_hash.py

package info (click to toggle)
python-eth-utils 5.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,140 kB
  • sloc: python: 5,985; makefile: 238
file content (10 lines) | stat: -rw-r--r-- 230 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
import pytest

from eth_utils import (
    humanize_hash,
)


@pytest.mark.parametrize("hash32,expected", ((bytes(range(32)), "0001..1e1f"),))
def test_humanize_hash(hash32, expected):
    assert humanize_hash(hash32) == expected