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