def checkResult(self, results, qtype):
        """
        Verify that the result is the same query type as what is expected.
        """
        answers, authority, additional = results
        result = answers[0]
        self.assertEqual(result.name.name, self.hostname)
        self.assertEqual(result.type, qtype)

        Verify that the result is the same query type as what is expected.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_client.py