blpapi.test.appendMessage¶
- blpapi.test.appendMessage(event, elementDef, properties=None)¶
Create a new message and append it to the specified
event
. Return aMessageFormatter
to format the last appended message.- Parameters
event (Event) – The
event
to which the new message will be appended. Theevent
must be a testblpapi.Event
created bycreateEvent()
.elementDef (SchemaElementDefinition) – Used to verify and encode the contents of the message.
properties (MessageProperties) – Used to set the metadata properties for the message.
- Returns
The
MessageFormatter
used to format the last appended message.- Return type
- Raises
Exception – If the method fails to append the message.