def test_from_bytes(sign_key1: SignKey): xbytes = sign_key1.as_bytes() sign_key12 = SignKey.from_bytes(xbytes) assert type(sign_key12) is SignKey xbytes2 = sign_key12.as_bytes() assert xbytes == xbytes2
def test_as_bytes(sign_key1: SignKey): xbytes = sign_key1.as_bytes() assert len(xbytes) > 0