pytest_bluezenv.EventPluginMixin#
- class pytest_bluezenv.EventPluginMixin[source]#
Simple expect() / reply() pattern for handing async events in host plugins.
- __init__()#
Methods
expect(kinds)Get most recent pending Event and assert its kind
get_event([block])Get most recent pending Event, blocking optional
object_method(obj, method, *a, **kw)Call DBus method of an object and handle reply as async events.
reply(*value)Provide DBus reply to the most recent pending Event
reply_error([err])Provide DBus error reply to the most recent pending Event
setup(impl)