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
) – Theevent
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 (
Optional
[MessageProperties
]) – Used to set the metadata properties for the message.
- Return type:
- Returns:
The
MessageFormatter
used to format the last appended message.- Raises:
Exception – If the method fails to append the message.