qubed/tests/test_protobuf.py
2025-05-14 10:14:02 +01:00

13 lines
322 B
Python

from qubed import Qube
def test_protobuf_simple():
q = Qube.from_tree("""
root, class=d1
├── dataset=another-value, generation=1/2/3
└── dataset=climate-dt/weather-dt, generation=1/2/3/4
""")
wire = q.to_protobuf()
round_trip = Qube.from_protobuf(wire)
assert round_trip == q