def test_as_bytes_string(self): a = Vector(["a", "ö"]).as_bytes() assert a.is_bytes() assert np.all(a == [b"a", b"\xc3\xb6"])
def test_as_bytes(self): a = Vector([0, 1]).as_bytes() assert a.is_bytes() assert np.all(a == [b"0", b"1"])