'L{server.DNSServerFactory._responseFromMessage} marks the response
message as authoritative if any of the answer records are authoritative.'

def test_responseFromMessageAuthoritativeMessage(self):

    factory = server.DNSServerFactory()
    response1 = factory._responseFromMessage(message=dns.Message(), answers=[dns.RRHeader(auth=True)])
    response2 = factory._responseFromMessage(message=dns.Message(), answers=[dns.RRHeader(auth=False)])
    self.assertEqual((True, False), (response1.auth, response2.auth))
