def add_listener(self, listener):
        self._listeners.append(listener)
Add listener callback for connection state transition.
dataset/ETHPy150Open pinterest/kingpin/kingpin/tests/kazoo_utils/mock_kazoo_client.py/MockKazooClient.add_listener