示例#1
0
 def tearDown(self):
     """Tear down the test."""
     pub.unsubAll("send")
示例#2
0
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")