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

def __eq__(self, other):

    if (not isinstance(other, NameTypeAndValue)):
        return False
    if (other[u'type'].native != self[u'type'].native):
        return False
    return (other.prepped_value == self.prepped_value)
