'The L{RRHeader} instances created by L{Message} from an authoritative
message are marked as authoritative.'

def test_authoritativeMessage(self):

    buf = BytesIO()
    answer = dns.RRHeader(payload=dns.Record_A('1.2.3.4', ttl=0))
    answer.encode(buf)
    message = dns.Message()
    message.fromStr(('\x01\x00\x04\x00\x00\x00\x00\x01\x00\x00\x00\x00' + buf.getvalue()))
    answer.auth = True
    self.assertEqual(message.answers, [answer])
    self.assertTrue(message.answers[0].auth)
