1
0
Fork 0
python-aristaproto/tests/inputs/regression_387/test_regression_387.py
Daniel Baumann 8512f66c5a
Adding upstream version 1.2+20240521.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-05 14:24:15 +01:00

12 lines
329 B
Python

from tests.output_aristaproto.regression_387 import (
ParentElement,
Test,
)
def test_regression_387():
el = ParentElement(name="test", elems=[Test(id=0), Test(id=42)])
binary = bytes(el)
decoded = ParentElement().parse(binary)
assert decoded == el
assert decoded.elems == [Test(id=0), Test(id=42)]