def tearDown(self): """Tear down the test.""" pub.unsubAll("send")
async def async_release_protocol(protocol): """Close the protocol and release subscriptions.""" protocol.close() await asyncio.sleep(0.1) pub.unsubAll("send") pub.unsubAll("send_message")