def publish_msg(rmq, f_name, **kwargs):

    """Function:  publish_msg

    Description:  Publish a message to RabbitMQ.

    Arguments:
        (input) rmq -> RabbitMQ Publisher instance
        (input) f_name ->  Full path and file name of test file.
        (output) status -> True|False - Status of publish.
        (output) err_msg -> Error message.

    """

    status = True
    err_msg = None

    with open(f_name, "r") as f_hldr:
        body = f_hldr.read()

    if not rmq.publish_msg(body):
        err_msg = "\tError:  Failed to publish message to RabbitMQ."
        status = False

    return status, err_msg