# cherrypy.test.test_bus module

Publish-subscribe bus tests.

cherrypy.test.test_bus.bus()

  Return a wspbus instance.

cherrypy.test.test_bus.listener()

  Return an instance of bus response tracker.

cherrypy.test.test_bus.log_tracker(bus)

  Return an instance of bus log tracker.

cherrypy.test.test_bus.test_block(bus, log_tracker)

  Test that bus block waits for exiting.

cherrypy.test.test_bus.test_builtin_channels(bus, listener)

  Test that built-in channels trigger corresponding listeners.

cherrypy.test.test_bus.test_custom_channels(bus, listener)

  Test that custom pub-sub channels work as built-in ones.

cherrypy.test.test_bus.test_exit(bus, listener, log_tracker)

  Test that bus exit sequence is correct.

cherrypy.test.test_bus.test_graceful(bus, listener, log_tracker)

  Test that bus graceful state triggers all listeners.

cherrypy.test.test_bus.test_listener_errors(bus, listener)

  Test that unhandled exceptions raise channel failures.

cherrypy.test.test_bus.test_log(bus, log_tracker)

  Test that bus messages and errors are logged.

cherrypy.test.test_bus.test_start(bus, listener, log_tracker)

  Test that bus start sequence calls all listeners.

cherrypy.test.test_bus.test_start_with_callback(bus)

  Test that callback fires on bus start.

cherrypy.test.test_bus.test_stop(bus, listener, log_tracker)

  Test that bus stop sequence calls all listeners.

cherrypy.test.test_bus.test_wait(bus)

  Test that bus wait awaits for states.

cherrypy.test.test_bus.test_wait_publishes_periodically(bus)

  Test that wait publishes each tick.