def test_init():
    h = Hmac(b"md5", b"Hello")
    h.update(b"hello")
    d = h.digest()
    assert d
    assert len(d) == 128 / 8
dataset/ETHPy150Open gdanezis/petlib/petlib/hmac.py/test_init/original