'Two L{dns.RRHeader} instances compare equal if and only if they have
the same name, type, class, time to live, payload, and authoritative
bit.'

def test_rrheader(self):

    self._equalityTest(dns.RRHeader('example.com', payload=dns.Record_A('1.2.3.4')), dns.RRHeader('example.com', payload=dns.Record_A('1.2.3.4')), dns.RRHeader('example.org', payload=dns.Record_A('1.2.3.4')))
    self._equalityTest(dns.RRHeader('example.com', payload=dns.Record_A('1.2.3.4')), dns.RRHeader('example.com', payload=dns.Record_A('1.2.3.4')), dns.RRHeader('example.com', payload=dns.Record_A('1.2.3.5')))
    self._equalityTest(dns.RRHeader('example.com', dns.A), dns.RRHeader('example.com', dns.A), dns.RRHeader('example.com', dns.MX))
    self._equalityTest(dns.RRHeader('example.com', cls=dns.IN, payload=dns.Record_A('1.2.3.4')), dns.RRHeader('example.com', cls=dns.IN, payload=dns.Record_A('1.2.3.4')), dns.RRHeader('example.com', cls=dns.CS, payload=dns.Record_A('1.2.3.4')))
    self._equalityTest(dns.RRHeader('example.com', ttl=60, payload=dns.Record_A('1.2.3.4')), dns.RRHeader('example.com', ttl=60, payload=dns.Record_A('1.2.3.4')), dns.RRHeader('example.com', ttl=120, payload=dns.Record_A('1.2.3.4')))
    self._equalityTest(dns.RRHeader('example.com', auth=1, payload=dns.Record_A('1.2.3.4')), dns.RRHeader('example.com', auth=1, payload=dns.Record_A('1.2.3.4')), dns.RRHeader('example.com', auth=0, payload=dns.Record_A('1.2.3.4')))
