'Test equality on priority, weight, port and server.'

def __eq__(self, other):

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