def test_responseKwargs(self):
        """
        L{dns._responseFromMessage} accepts other C{kwargs} which are assigned
        to the new message before it is returned.
        """
        self.assertEqual(
            123,
            dns._responseFromMessage(
                responseConstructor=dns.Message, message=dns.Message(),
                rCode=123).rCode
        )

        L{dns._responseFromMessage} accepts other C{kwargs} which are assigned
        to the new message before it is returned.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py