#NEWLINE# def test_register_client( self ) : #NEWLINE# #INDENT# ' Adds a publisher then removes it.  ' #NEWLINE# topic = '/test_register_client' #NEWLINE# msg_type = 'std_msgs/String' #NEWLINE# client_id = 'client1' #NEWLINE# p = MultiPublisher ( msg_type , msg_type ) #NEWLINE# self . assertFalse ( p . has_clients ( ) ) #NEWLINE# p . register_client ( client_id ) #NEWLINE# self . assertTrue ( p . has_clients ( ) ) #NEWLINE# p . unregister_client ( client_id ) #NEWLINE# self . assertFalse ( p . has_clients ( ) )