#NEWLINE# def test_msg_cache( self ) : #NEWLINE# #INDENT# stdmsgs = [ 'std_msgs/Bool' , 'std_msgs/Byte' , 'std_msgs/ByteMultiArray' , 'std_msgs/ColorRGBA' , 'std_msgs/Duration' , 'std_msgs/Empty' , 'std_msgs/Float32' , 'std_msgs/Float32MultiArray' , 'std_msgs/Float64' , 'std_msgs/Header' , 'std_msgs/Int16' , 'std_msgs/Int16MultiArray' , 'std_msgs/Int32' , 'std_msgs/Int32MultiArray' , 'std_msgs/Int64' , 'std_msgs/Int64MultiArray' , 'std_msgs/Int8' , 'std_msgs/Int8MultiArray' , 'std_msgs/MultiArrayDimension' , 'std_msgs/MultiArrayLayout' , 'std_msgs/String' , 'std_msgs/Time' , 'std_msgs/UInt16' , 'std_msgs/UInt16MultiArray' , 'std_msgs/UInt32MultiArray' , 'std_msgs/UInt64MultiArray' , 'std_msgs/UInt32' , 'std_msgs/UInt64' , 'std_msgs/UInt8' , 'std_msgs/UInt8MultiArray' ] #NEWLINE# for x in stdmsgs : #NEWLINE# #INDENT# self . assertNotEqual ( ros_loader . get_message_class ( x ) , None ) #NEWLINE# inst = ros_loader . get_message_instance ( x ) #NEWLINE# self . assertNotEqual ( inst , None ) #NEWLINE# self . assertEqual ( x , inst . _type ) #NEWLINE# self . assertTrue ( ( x in ros_loader . _loaded_msgs ) )