import pdb


def _check_output_repeat(msg, output):
    """
    Return True if a message fully constists of output.
    Otherwise return False.
    Parameters
    ----------
    msg: Union[bytes, str]
        A message.
    output: Union[bytes, str]
        An output.
    """
    if len(msg) < 1 or len(output) < 1:
        return False
    len_output = len(output)
    for i in range(0, len(msg), len_output):
        slice = msg[i: len_output]
        if msg != slice:
            pdb.set_trace()
            return False
    return True