blpapi.test.createTopic¶
- blpapi.test.createTopic(service, isActive=True)¶
Create a valid
blpapi.Topicwith the specifiedserviceto support testing publishers. The expected use case is to support returning a customblpapi.Topicwhile mockingblpapi.ProviderSession.getTopic()methods.- Parameters
service (Service) – The
blpapi.Serviceto which the returnedblpapi.Topicwill belong.isActive (bool) – Optional. Specifies whether the returned
blpapi.Topicis active.
- Returns
A valid
blpapi.Topicwith the specifiedservice.- Return type