def test_responseFromMessageNewMessage(self):
        """
        L{server.DNSServerFactory._responseFromMessage} generates a response
        message which is a copy of the request message.
        """
        factory = server.DNSServerFactory()
        request = dns.Message(answer=False, recAv=False)
        response = factory._responseFromMessage(message=request),

        self.assertIsNot(request, response)

        L{server.DNSServerFactory._responseFromMessage} generates a response
        message which is a copy of the request message.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_server.py