Add test for setting a field from a list

This commit is contained in:
Kamal Marhubi
2015-05-30 19:38:40 -04:00
parent fbefc3cd3b
commit b31b53b6a7

View File

@@ -107,6 +107,14 @@ def test_builder_set(addressbook):
person.foo = 'test' 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): def test_null_str(all_types):
msg = all_types.TestAllTypes.new_message() msg = all_types.TestAllTypes.new_message()