'Tests equality on priority, weight, port and server'

def __eq__(self, other):

    if isinstance(other, DNSService):
        return ((self.priority == other.priority) and (self.weight == other.weight) and (self.port == other.port) and (self.server == other.server))
    return 0
