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

18 lines
356 B
Python

from tests.output_aristaproto.mapmessage import (
Nested,
Test,
)
def test_mapmessage_to_dict_preserves_message():
message = Test(
items={
"test": Nested(
count=1,
)
}
)
message.to_dict()
assert isinstance(message.items["test"], Nested), "Wrong nested type after to_dict"