'Equality as defined by https://tools.ietf.org/html/rfc5280#section-7.1
:param other:
Another RDNSequence object
:return:
A boolean'

def __eq__(self, other):

    if (not isinstance(other, RDNSequence)):
        return False
    if (len(self) != len(other)):
        return False
    for (index, self_rdn) in enumerate(self):
        if (other[index] != self_rdn):
            return False
    return True
