def test_from_bytes(multi_sig: MultiSignature): xbytes = multi_sig.as_bytes() multi_sig2 = MultiSignature.from_bytes(xbytes) assert type(multi_sig2) is MultiSignature xbytes2 = multi_sig2.as_bytes() assert xbytes == xbytes2
def test_as_bytes(multi_sig: MultiSignature): xbytes = multi_sig.as_bytes() assert len(xbytes) > 0