def test_responseQueries(self):
        """
        L{dns._responseFromMessage} copies the C{queries} attribute of the
        original message.
        """
        request = dns.Message()
        expectedQueries = [object(), object(), object()]
        request.queries = expectedQueries[:]

        self.assertEqual(
            expectedQueries,
            dns._responseFromMessage(responseConstructor=dns.Message,
                                     message=request).queries
        )

        L{dns._responseFromMessage} copies the C{queries} attribute of the
        original message.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py