diff --git a/test/test_struct.py b/test/test_struct.py index 563ba02..14aaca2 100644 --- a/test/test_struct.py +++ b/test/test_struct.py @@ -107,6 +107,14 @@ def test_builder_set(addressbook): person.foo = 'test' +def test_builder_set_from_list(all_types): + msg = all_types.TestAllTypes.new_message() + + msg.int32List = [0, 1, 2] + + assert list(msg.int32List) == [0, 1, 2] + + def test_null_str(all_types): msg = all_types.TestAllTypes.new_message()