def test_sequence_length(sequence):
    """
    Tests if sequence is not longer than 36 residues.

    Parameters
    ----------
    sequences: peptide sequence

    Returns
    -------
    Boolean: True
        if length of sequence <= 36 residues.
    """
    if len(sequence) < 36: return True
    else:
        msg = "Please provide a sequence with a maximum of 36 residues. " +\
              "The provided sequence length is {}.".format(len(sequence))
        raise RuntimeError(msg)