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

def __eq__(self, other):

    if (not isinstance(other, RelativeDistinguishedName)):
        return False
    if (len(self) != len(other)):
        return False
    self_types = self._get_types(self)
    other_types = self._get_types(other)
    if (self_types != other_types):
        return False
    self_values = self._get_values(self)
    other_values = self._get_values(other)
    for type_name_ in self_types:
        if (self_values[type_name_] != other_values[type_name_]):
            return False
    return True
