'Does not support other_name, x400_address or edi_party_name
:param other:
The other GeneralName to compare to
:return:
A boolean'

def __eq__(self, other):

    if (self.name in (u'other_name', u'x400_address', u'edi_party_name')):
        raise ValueError(unwrap(u'\n                                                                Comparison    is    not    supported    for    GeneralName    objects    of\n                                                                choice    %s\n                                                                ', self.name))
    if (other.name in (u'other_name', u'x400_address', u'edi_party_name')):
        raise ValueError(unwrap(u'\n                                                                Comparison    is    not    supported    for    GeneralName    objects    of    choice\n                                                                %s', other.name))
    if (self.name != other.name):
        return False
    return (self.chosen == other.chosen)
