def add_to_dict(val,key,message_dict):
    """
    Add new key, val (ignored java message) to dict message_dict.

    Parameters
    ----------

    val :  Str
       contains ignored java messages.
    key :  Str
        key for the ignored java messages.  It can be "general" or any R or Python unit
        test names
    message_dict :  dict
        stored ignored java message for key ("general" or any R or Python unit test names)

    :return: none
    """
    allKeys = message_dict.keys()
    if (len(val) > 0):    # got a valid message here
        if (key in allKeys) and (val not in message_dict[key]):
            message_dict[key].append(val)   # only include this message if it has not been added before
        else:
            message_dict[key] = [val]
def add_to_dict(val,key,message_dict):
    """
    Add new key, val (ignored java message) to dict message_dict.

    Parameters
    ----------

    val :  Str
       contains ignored java messages.
    key :  Str
        key for the ignored java messages.  It can be "general" or any R or Python unit
        test names
    message_dict :  dict
        stored ignored java message for key ("general" or any R or Python unit test names)

    :return: none
    """
    allKeys = message_dict.keys()
    if (len(val) > 0):    # got a valid message here
        if (key in allKeys) and (val not in message_dict[key]):
            message_dict[key].append(val)   # only include this message if it has not been added before
        else:
            message_dict[key] = [val]
def add_to_dict ( val , key , message_dict ) : allKeys = message_dict . keys ( ) if ( len ( val ) > 0 ) : # got a valid message here if ( key in allKeys ) and ( val not in message_dict [ key ] ) : message_dict [ key ] . append ( val ) # only include this message if it has not been added before else : message_dict [ key ] = [ val ]
Add new key, val (ignored java message) to dict message_dict.

    Parameters
    ----------

    val :  Str
       contains ignored java messages.
    key :  Str
        key for the ignored java messages.  It can be "general" or any R or Python unit
        test names
    message_dict :  dict
        stored ignored java message for key ("general" or any R or Python unit test names)

    :return: none
Add new key val ( ignored java message ) to dict message_dict .