The kazoo.testing module has a usable test harness for this purpose.
The kazoo.testing module has a usable test harness for this purpose.