def test_register_client(self):
        topic = "/test_register_client"
        msg_type = "std_msgs/String"
        client_id = "client1"

        p = MultiPublisher(topic, msg_type)
        self.assertFalse(p.has_clients())

        p.register_client(client_id)
        self.assertTrue(p.has_clients())

        p.unregister_client(client_id)
        self.assertFalse(p.has_clients())
Return a boolean indicating whether given alias exists.
dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_library/test/internal/publishers/test_multi_publisher.py/TestMultiPublisher.test_register_client--crossover with--dataset/ETHPy150Open elastic/elasticsearch-py/elasticsearch/client/indices.py/IndicesClient.exists_alias