1
0
Fork 0
python-aristaproto/tests/inputs/regression_414/test_regression_414.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

15 lines
369 B
Python

from tests.output_aristaproto.regression_414 import Test
def test_full_cycle():
body = bytes([0, 1])
auth = bytes([2, 3])
sig = [b""]
obj = Test(body=body, auth=auth, signatures=sig)
decoded = Test().parse(bytes(obj))
assert decoded == obj
assert decoded.body == body
assert decoded.auth == auth
assert decoded.signatures == sig