1
0
Fork 0
python-aristaproto/tests/test_mapmessage.py

19 lines
356 B
Python
Raw Normal View History

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"