def test_responseAnswer(self):
        """
        L{dns._responseFromMessage} sets the C{answer} flag to L{True}
        """
        request = dns.Message()
        response = dns._responseFromMessage(responseConstructor=dns.Message,
                                            message=request)
        self.assertEqual(
            (False, True),
            (request.answer, response.answer)
        )

        L{dns._responseFromMessage} sets the C{answer} flag to L{True}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py