def METHOD_NAME(self, webpubsubclient_connection_string):
    client = self.create_client(connection_string=webpubsubclient_connection_string)
    def on_stop():
        client._start()
    with client:
        # start client again after stop
        client.on("stopped", on_stop)
        assert client._is_connected()
        client._stop()
        time.sleep(1.0)
        assert client._is_connected()
        # remove stopped event and stop again
        client.off("stopped", on_stop)
        client._stop()
        time.sleep(1.0)
        assert not client._is_connected()